Udostępnij za pośrednictwem


ISerializerLocatorExtensions.GetSerializer(ISerializerLocator, Type) Method

Definition

Returns a serializer that handles the specified type of domain model, or null if an appropriate serializer could not be found.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Modeling::IDomainModelSerializer ^ GetSerializer(Microsoft::VisualStudio::Modeling::ISerializerLocator ^ locator, Type ^ domainModelType);
public static Microsoft.VisualStudio.Modeling.IDomainModelSerializer GetSerializer (this Microsoft.VisualStudio.Modeling.ISerializerLocator locator, Type domainModelType);
static member GetSerializer : Microsoft.VisualStudio.Modeling.ISerializerLocator * Type -> Microsoft.VisualStudio.Modeling.IDomainModelSerializer
<Extension()>
Public Function GetSerializer (locator As ISerializerLocator, domainModelType As Type) As IDomainModelSerializer

Parameters

domainModelType
Type

Type of the domain model to be serialized.

Returns

A serializer that can serialize the type of model or null if one could not be located

Applies to