DomainXmlSerializerDirectory Class

Combines XML serialization behaviors from different domain models together.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Modeling.DomainXmlSerializerDirectory

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

Syntax

'Declaration
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
Public method DomainXmlSerializerDirectory() Initializes a new instance of the DomainXmlSerializerDirectory class.
Public method DomainXmlSerializerDirectory(array<DomainXmlSerializationBehavior[]) Initializes a new instance of the DomainXmlSerializerDirectory class.

Top

Properties

  Name Description
Public property Namespaces Returns the list of namespaces mapped to domain model types

Top

Methods

  Name Description
Public method AddBehavior Adds a serialization behavior to this dictionary.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetPropertySerializer Get the DomainPropertyXmlSerializer instance for the given property type.
Public method GetSerializer Gets the DomainClassXmlSerializer instance for the given domain class ID.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method 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.

See Also

Reference

Microsoft.VisualStudio.Modeling Namespace