DomainXmlSerializerDirectory Class
Combines XML serialization behaviors from different domain models together.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
| Name | Description | |
|---|---|---|
![]() | DomainXmlSerializerDirectory() | Initializes a new instance of the DomainXmlSerializerDirectory class. |
![]() | DomainXmlSerializerDirectory(array<DomainXmlSerializationBehavior^>^) | Initializes a new instance of the DomainXmlSerializerDirectory class. |
| Name | Description | |
|---|---|---|
![]() | Namespaces | Returns the list of namespaces mapped to domain model types |
| Name | Description | |
|---|---|---|
![]() | AddBehavior(DomainXmlSerializationBehavior^) | Adds a serialization behavior to this dictionary. |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetPropertySerializer(Type^) | Get the DomainPropertyXmlSerializer instance for the given property type. |
![]() | GetSerializer(Guid) | Gets the DomainClassXmlSerializer instance for the given domain class ID. |
![]() | GetType() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
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.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

