Condividi tramite


DomainClassXmlSerializer Class

Represents the base class for all generated domain serializers.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.DomainClassXmlSerializer
    Microsoft.VisualStudio.Modeling.Diagrams.PresentationElementSerializer
    Microsoft.VisualStudio.Modeling.DomainRelationshipXmlSerializer
    Microsoft.VisualStudio.Modeling.DslDefinition.DomainElementSerializer
    Microsoft.VisualStudio.Modeling.DslDefinition.DslLibraryImportSerializer
    Microsoft.VisualStudio.Modeling.ExtensionElementSerializer

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

Syntax

'Dichiarazione
Public Class DomainClassXmlSerializer
public class DomainClassXmlSerializer
public ref class DomainClassXmlSerializer
type DomainClassXmlSerializer =  class end
public class DomainClassXmlSerializer

The DomainClassXmlSerializer type exposes the following members.

Constructors

  Name Description
Public method DomainClassXmlSerializer Initializes a new instance of the DomainClassXmlSerializer class.

Top

Properties

  Name Description
Public property MonikerAttributeName Gets the XML attribute name that contains the moniker string.
Public property MonikerTagName Gets the XML tag name.
Public property XmlTagName Gets the XML tag name that will be used in serialization.

Top

Methods

  Name Description
Public method CalculateQualifiedName Calculates a reference to a handled model element instance.
Protected method CreateInstance Creates a model element instance.
Protected method CreateMonikerInstance Creates a moniker instance.
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 GetMonikerQualifier Calculates the Qualifier for the moniker.
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 Read Deserializes a given model element instance from XML.
Protected method ReadAdditionalElementData Read any additional element data that is associated with the element.
Protected method ReadElements This methods deserializes nested XML elements inside the passed-in element.
Protected method ReadPropertiesFromAttributes This method deserializes all properties that are serialized as XML attributes.
Public method ReadRootElement Deserializes the root model element from XML.
Public method Reset Returns the serializer to its initial state
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryCreateInstance Checks if the given XmlReader is pointing to a serialized model element instance that this serializer can handle.
Public method TryCreateMonikerInstance Checks if the given XmlReader is pointing to a monikerized instance of a model element that this serializer can handle.
Public method Write(SerializationContext, ModelElement, XmlWriter) Serializes the model element instance associated with this serializer instance into XML.
Public method Write(SerializationContext, ModelElement, XmlWriter, RootElementSettings) Serializes the model element instance associated with this serializer instance into XML.
Protected method WriteAdditionalElementData Write any additional element data associated with the element
Protected method WriteElements This methods serializes 1) properties serialized as nested XML elements and 2) child model elements into XML.
Public method WriteMoniker Serializes, from a moniker, the model element instance that associated with this serializer instance into XML.
Protected method WritePropertiesAsAttributes Write all properties that need to be serialized as XML attributes.
Public method WriteRootElement Serializes the root model element instance associated with this serializer instance into XML.

Top

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