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 | |
---|---|---|
StandardSerializerLocator | Constructor |
Top
Properties
Name | Description | |
---|---|---|
Provider | The composition container the domain model resolver will use to locate exports. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetSerializer | Returns a serializer that handles files of the specified type, or null if an appropriate serializer could not be found. | |
GetSerializerFromFileName | Returns a serialized that handles files of the specified type, or null if an appropriate serializer could not be found. | |
GetSerializerFromNamespace | Returns a serializer that handles the specified target namespace or null if an appropriate serializer could not be found. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Extension Methods
Name | Description | |
---|---|---|
GetDomainModelType | This method takes a target namespace string and return the corresponding domain model type (Defined by ISerializerLocatorExtensions.) | |
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.