DomainXmlSerializationBehavior Class

Represents all XML serialization behavior-generated classes.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Modeling.DomainXmlSerializationBehavior
    Microsoft.VisualStudio.Modeling.CoreDomainModelSerializationBehavior
    Microsoft.VisualStudio.Modeling.Diagrams.CoreDesignSurfaceSerializationBehaviorBase
    Microsoft.VisualStudio.Modeling.DslDefinition.DslDefinitionModelSerializationBehaviorBase

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

Syntax

'Declaration
Public MustInherit Class DomainXmlSerializationBehavior
public abstract class DomainXmlSerializationBehavior
public ref class DomainXmlSerializationBehavior abstract
[<AbstractClass>]
type DomainXmlSerializationBehavior =  class end
public abstract class DomainXmlSerializationBehavior

The DomainXmlSerializationBehavior type exposes the following members.

Constructors

  Name Description
Protected method DomainXmlSerializationBehavior Initializes a new instance of the DomainXmlSerializationBehavior class.

Top

Properties

  Name Description
Public property AllNamespaces This provides a mapping from xml namespaces to domain model implementation types.
Public property AllPropertySerializers This provides a mapping from property type to DomainPropertyXmlSerializerImplementation type to use for serialization.
Public property AllSerializers Gets the implementation types.

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 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

Remarks

Each XmlSerializationBehaivor defines a set of behaviors of how to serialize the DomainClasses in the model to XML, which causes a set of serializers (all deriving from DomainXmlSerializer) to be generated. The main purpose of the DomainXmlSerializationBehavior class is to provide a mapping from DomainClass to its serializer at run-time.

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