다음을 통해 공유


ISerializerLocatorExtensions.GetDomainModelType Method

This method takes a target namespace string and return the corresponding domain model type

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

‘선언
<ExtensionAttribute> _
Public Shared Function GetDomainModelType ( _
    locator As ISerializerLocator, _
    targetNamespace As String _
) As Type
public static Type GetDomainModelType(
    this ISerializerLocator locator,
    string targetNamespace
)
[ExtensionAttribute]
public:
static Type^ GetDomainModelType(
    ISerializerLocator^ locator, 
    String^ targetNamespace
)
static member GetDomainModelType : 
        locator:ISerializerLocator * 
        targetNamespace:string -> Type 
public static function GetDomainModelType(
    locator : ISerializerLocator, 
    targetNamespace : String
) : Type

Parameters

  • targetNamespace
    Type: System.String
    Target namespace to resolve

Return Value

Type: System.Type
The type of the corresponding domain model, or null if one could not be determined

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ISerializerLocator. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

ISerializerLocatorExtensions Class

Microsoft.VisualStudio.Modeling Namespace