Partager via


ISerializerLocator Interface

This interface provides a way to locate serializers for a domain model.

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

Syntax

'Declaration
Public Interface ISerializerLocator
public interface ISerializerLocator
public interface class ISerializerLocator
type ISerializerLocator =  interface end
public interface ISerializerLocator

The ISerializerLocator type exposes the following members.

Methods

  Name Description
Public method GetSerializer Returns a serializer that handles the specified type of domain model, or null if an appropriate serializer could not be found.
Public method GetSerializerFromFileName Returns a serializer that handles files of the specified type, or null if an appropriate serializer could not be found.
Public method GetSerializerFromNamespace Returns a serializer that handles the specified target namespace or null if an appropriate serializer could not be found.

Top

Extension Methods

  Name Description
Public Extension Method GetDomainModelType This method takes a target namespace string and return the corresponding domain model type (Defined by ISerializerLocatorExtensions.)
Public Extension Method GetSerializer Returns a serializer that handles the specified type of domain model, or null if an appropriate serializer could not be found. (Defined by ISerializerLocatorExtensions.)

Top

See Also

Reference

Microsoft.VisualStudio.Modeling Namespace