ISerializerLocatorExtensions.GetSerializer(ISerializerLocator, Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- locator
- ISerializerLocator
- 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