次の方法で共有


StandardSerializerLocator Class

Standard implementation of the ISerializerLocator interface

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.StandardSerializerLocator

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

Syntax

'宣言
Public Class StandardSerializerLocator _
    Implements ISerializerLocator
public class StandardSerializerLocator : ISerializerLocator
public ref class StandardSerializerLocator : ISerializerLocator
type StandardSerializerLocator =  
    class
        interface ISerializerLocator
    end
public class StandardSerializerLocator implements ISerializerLocator

The StandardSerializerLocator type exposes the following members.

Constructors

  Name Description
Public method StandardSerializerLocator Constructor

Top

Properties

  Name Description
Public property Provider The composition container the domain model resolver will use to locate exports.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetSerializer Returns a serializer that handles files of the specified type, or null if an appropriate serializer could not be found.
Public method GetSerializerFromFileName Returns a serialized 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.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

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

Remarks

Uses MEF to locate and return domain model serializers

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Modeling Namespace