LinqConnect Documentation
Devart.Data.Linq.Mapping Namespace / XmlMappingSource Class / FromResource Method / FromResource(String,Type) Method
The name of the resource.
The type of DataContext.

In This Topic
    FromResource(String,Type) Method
    In This Topic
    Initializes a new instance of the XmlMappingSource class from a resource.
    Syntax
    'Declaration
     
    Public Overloads Shared Function FromResource( _
       ByVal resName As String, _
       ByVal dataContextType As Type _
    ) As XmlMappingSource
    public static XmlMappingSource FromResource( 
       string resName,
       Type dataContextType
    )

    Parameters

    resName
    The name of the resource.
    dataContextType
    The type of DataContext.

    Return Value

    New instance of the XmlMappingSource class.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also