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
'Declaração
<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
- locator
Type: Microsoft.VisualStudio.Modeling.ISerializerLocator
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.