共用方式為


DomainRelationshipXmlSerializer Class

Represents the base class for all generated domain serializers for domain relationships.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.DomainClassXmlSerializer
    Microsoft.VisualStudio.Modeling.DomainRelationshipXmlSerializer
      More...

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

Syntax

'宣告
Public MustInherit Class DomainRelationshipXmlSerializer _
    Inherits DomainClassXmlSerializer
public abstract class DomainRelationshipXmlSerializer : DomainClassXmlSerializer
public ref class DomainRelationshipXmlSerializer abstract : public DomainClassXmlSerializer
[<AbstractClass>]
type DomainRelationshipXmlSerializer =  
    class
        inherit DomainClassXmlSerializer
    end
public abstract class DomainRelationshipXmlSerializer extends DomainClassXmlSerializer

The DomainRelationshipXmlSerializer type exposes the following members.

Constructors

  Name Description
Public method DomainRelationshipXmlSerializer Constructor

Top

Properties

  Name Description
Public property MonikerAttributeName Gets the XML attribute name that contains the moniker string. (Inherited from DomainClassXmlSerializer.)
Public property MonikerTagName Gets the XML tag name. (Inherited from DomainClassXmlSerializer.)
Public property SerializesId Exposes whether serializers derived from this class are serializing Id.
Public property UsesFullForm Exposes whether serializers derived from this class are serializing this relationship in full form.
Public property XmlTagName Gets the XML tag name that will be used in serialization. (Inherited from DomainClassXmlSerializer.)

Top

Methods

  Name Description
Public method CalculateQualifiedName Calculates a reference to a handled model element instance. (Inherited from DomainClassXmlSerializer.)
Protected method CreateInstance Creates a model element instance. (Inherited from DomainClassXmlSerializer.)
Protected method CreateMonikerInstance Creates a moniker instance. (Inherited from DomainClassXmlSerializer.)
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. (Inherited from DomainClassXmlSerializer.)
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 MonikerizeReference Calculates a Moniker, given a reference to a ModelElement.
Public method Read Deserializes a given model element instance from XML. (Inherited from DomainClassXmlSerializer.)
Protected method ReadAdditionalElementData Read any additional element data that is associated with the element. (Inherited from DomainClassXmlSerializer.)
Protected method ReadElements This methods deserializes nested XML elements inside the passed-in element. (Inherited from DomainClassXmlSerializer.)
Protected method ReadPropertiesFromAttributes This method deserializes all properties that are serialized as XML attributes. (Inherited from DomainClassXmlSerializer.)
Public method ReadRootElement Deserializes the root model element from XML. (Inherited from DomainClassXmlSerializer.)
Public method Reset Returns the serializer to its initial state (Inherited from DomainClassXmlSerializer.)
Public method SerializeReference Calculates a monikerized string reference to the given target role-player instance.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryCreateDerivedInstance With the given XmlReader, check if it is currently pointing to a serialized instance that derives from the ElementLink this serializer can handle. If so, create an instance of the derived ElementLink instance in the given Partition; otherwise return NULL.F1126
Public method TryCreateInstance Checks if the given XmlReader is pointing to a serialized model element instance that this serializer can handle. (Inherited from DomainClassXmlSerializer.)
Public method TryCreateMonikerInstance Checks if the given XmlReader is pointing to a monikerized instance of a model element that this serializer can handle. (Inherited from DomainClassXmlSerializer.)
Public method Write(SerializationContext, ModelElement, XmlWriter) Serializes the model element instance associated with this serializer instance into XML. (Inherited from DomainClassXmlSerializer.)
Public method Write(SerializationContext, ModelElement, XmlWriter, RootElementSettings) Serializes the model element instance associated with this serializer instance into XML. (Inherited from DomainClassXmlSerializer.)
Protected method WriteAdditionalElementData Write any additional element data associated with the element (Inherited from DomainClassXmlSerializer.)
Protected method WriteElements This methods serializes 1) properties serialized as nested XML elements and 2) child model elements into XML. (Inherited from DomainClassXmlSerializer.)
Public method WriteMoniker Serializes, from a moniker, the model element instance that associated with this serializer instance into XML. (Inherited from DomainClassXmlSerializer.)
Protected method WritePropertiesAsAttributes Write all properties that need to be serialized as XML attributes. (Inherited from DomainClassXmlSerializer.)
Public method WriteRootElement Serializes the root model element instance associated with this serializer instance into XML. (Inherited from DomainClassXmlSerializer.)

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

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.DomainClassXmlSerializer
    Microsoft.VisualStudio.Modeling.DomainRelationshipXmlSerializer
      Microsoft.VisualStudio.Modeling.Diagrams.LinkConnectsToNodeSerializer
      Microsoft.VisualStudio.Modeling.Diagrams.ParentShapeContainsNestedChildShapesSerializer
      Microsoft.VisualStudio.Modeling.Diagrams.ParentShapeHasRelativeChildShapesSerializer
      Microsoft.VisualStudio.Modeling.Diagrams.PresentationViewsSubjectSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.AttributedDomainElementHasAttributesSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.AttributeHasParametersSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.BaseShapeMapReferencesBaseShapeSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.ClassHasBaseClassSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.ClassHasElementMergeDirectivesSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.ClassHasPropertiesSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.ClassIndexesElementMergeDirectiveSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.CompartmentMapHasElementsDisplayedPathSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.CompartmentMapHasPropertyDisplayedPathSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.CompartmentMapsReferToCompartmentSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.ConnectorMapReferencesConnectorSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.ConnectorMapReferencesRelationshipSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.ConnectorToolReferencesConnectionBuilderSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.CustomPropertyDescriptorSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.DecoratorMapHasPropertyDisplayedPathSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.DecoratorMapReferencesDecoratorSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.DesignerHasDiagramSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.DiagramElementHasDecoratorsSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.DiagramElementMapHasDecoratorMapsSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.DiagramHasConnectorMapsSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.DiagramHasShapeMapsSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.DiagramRepresentsClassSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.DomainClassHasCustomTypeDescriptorSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.DomainPropertyHasElementNameProviderSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.DomainRoleHasPropertyAttributesSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.DomainRoleImplementedByCollectionTypeSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.DslEditorIdentifiesRootClassSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.DslLibraryHasConnectionBuildersSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.DslLibraryHasDslLibraryImportsSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.DslLibraryHasReferenceTypesSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.DslLibraryHasTypesSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.ElementMergeDirectiveHasForwardingPathSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.ElementMergeDirectiveHasLinkCreationPathsSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.EnumerationHasAttributesSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.EnumerationHasLiteralsSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.ExplorerBehaviorHasNodeSettingsSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.ExplorerHidesNodesSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.ExplorerNodeSettingsHasPropertyDisplayedPathSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.ExplorerNodeSettingsReferencesClassSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.ExplorerReferencesBehaviorSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.LinkConnectDirectiveHasSourceDirectivesSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.LinkConnectDirectiveHasTargetDirectivesSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.LinkConnectDirectiveReferencesDomainRelationshipSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.ObjectToolReferencesClassSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.PathHasSegmentsSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.PathSegmentReferencesRoleSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.PropertyHasTypeSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.PropertyPathReferencesPropertySerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRolesSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.RoleHasRolePlayerSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.RolePlayerConnectDirectiveAcceptsClassSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.RolePlayerConnectDirectiveHasPathToRolePlayerSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.ShapeMapHasParentElementPathSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.ShapeMapReferencesClassSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.VisibilityPropertyPathHasPropertyFiltersSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.XmlClassDataAppliesToDomainClassSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.XmlClassDataHasXmlElementDataSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.XmlElementAppliesToDomainPropertySerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.XmlRelationshipDataAppliesToDomainRelationshipSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationBehaviorHasXmlClassDataSerializer
      Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationDefinitionReferencesBehaviorSerializer
      Microsoft.VisualStudio.Modeling.ExtensionExtendsElementSerializer