DomainXmlSerializerDirectory Class
Combines XML serialization behaviors from different domain models together.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Modeling.DomainXmlSerializerDirectory
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'宣言
Public NotInheritable Class DomainXmlSerializerDirectory
public sealed class DomainXmlSerializerDirectory
public ref class DomainXmlSerializerDirectory sealed
[<Sealed>]
type DomainXmlSerializerDirectory = class end
public final class DomainXmlSerializerDirectory
The DomainXmlSerializerDirectory type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DomainXmlSerializerDirectory() | Initializes a new instance of the DomainXmlSerializerDirectory class. | |
DomainXmlSerializerDirectory(array<DomainXmlSerializationBehavior[]) | Initializes a new instance of the DomainXmlSerializerDirectory class. |
Top
Properties
Name | Description | |
---|---|---|
Namespaces | Returns the list of namespaces mapped to domain model types |
Top
Methods
Name | Description | |
---|---|---|
AddBehavior | Adds a serialization behavior to this dictionary. | |
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.) | |
GetPropertySerializer | Get the DomainPropertyXmlSerializer instance for the given property type. | |
GetSerializer | Gets the DomainClassXmlSerializer instance for the given domain class ID. | |
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
Remarks
This class is meant to be used at run time to combine all XML serialization behaviors from different domain models together.
Typically, a user will choose more than one model, for example, one for in-memory model and one for presentation elements. Each model requires an associated behavior to get serialized and deserialized properly.
Because relationships can connect model elements across domains, it is necessary to have a single lookup that maps all used domain classes to their 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.