Partager via


StandardSerializerLocator Class

Definition

Standard implementation of the ISerializerLocator interface

public ref class StandardSerializerLocator : Microsoft::VisualStudio::Modeling::ISerializerLocator
public class StandardSerializerLocator : Microsoft.VisualStudio.Modeling.ISerializerLocator
type StandardSerializerLocator = class
    interface ISerializerLocator
Public Class StandardSerializerLocator
Implements ISerializerLocator
Inheritance
StandardSerializerLocator
Implements

Remarks

Uses MEF to locate and return domain model serializers

Constructors

StandardSerializerLocator(ExportProvider)

Constructor

Properties

Provider

The composition container the domain model resolver will use to locate exports.

Methods

GetSerializer(Guid)

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

GetSerializerFromFileName(String)

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

GetSerializerFromNamespace(String)

Returns a serializer that handles the specified target namespace or null if an appropriate serializer could not be found.

Extension Methods

GetDomainModelType(ISerializerLocator, String)

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

GetSerializer(ISerializerLocator, Type)

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

Applies to