CompartmentShapeMapSerializer 類別

定義

DomainClass CompartmentShapeMap 的序列化程式 CompartmentShapeMapSerializer。Serializer CompartmentShapeMapSerializer for DomainClass CompartmentShapeMap.

public ref class CompartmentShapeMapSerializer sealed : Microsoft::VisualStudio::Modeling::DslDefinition::BaseShapeMapSerializer
public sealed class CompartmentShapeMapSerializer : Microsoft.VisualStudio.Modeling.DslDefinition.BaseShapeMapSerializer
type CompartmentShapeMapSerializer = class
    inherit BaseShapeMapSerializer
Public NotInheritable Class CompartmentShapeMapSerializer
Inherits BaseShapeMapSerializer
繼承

建構函式

CompartmentShapeMapSerializer()

CompartmentShapeMapSerializer 函式CompartmentShapeMapSerializer Constructor

屬性

MonikerAttributeName

無法 monikerized。Cannot be monikerized.

MonikerTagName

無法 monikerized。Cannot be monikerized.

XmlTagName

這是用來序列化 CompartmentShapeMap 實例的 XML 標記名稱。This is the XML tag name used to serialize an instance of CompartmentShapeMap.

方法

CalculateQualifiedName(DomainXmlSerializerDirectory, ModelElement)

這個方法會將標記計算到指定的 CompartmentShapeMap 實例。This method calculates a moniker to a given CompartmentShapeMap instance.

CreateInstance(SerializationContext, XmlReader, Partition)

這個方法會根據讀取器目前指向的標記來建立 BaseShapeMap 的實例。This method creates an instance of BaseShapeMap based on the tag currently pointed by the reader. 呼叫端保證會將讀取器 () 指向 BaseShapeMap 的序列化實例。The reader is guaranteed (by the caller) to be pointed at a serialized instance of BaseShapeMap.

(繼承來源 BaseShapeMapSerializer)
CreateMonikerInstance(SerializationContext, XmlReader, ModelElement, Guid, Partition)

這個方法會根據讀取器目前指向的標記來建立 BaseShapeMap 的標記。This method creates a Moniker of BaseShapeMap based on the tag currently pointed by the reader.

(繼承來源 BaseShapeMapSerializer)
GetMonikerQualifier(DomainXmlSerializerDirectory, ModelElement)

網域類別可以用不同的方式來 monikerized:標準/qualifier/key 機制、自訂的名字或元素識別碼。A domain class can be monikerized in different ways: standard /qualifier/key mechanism, custom moniker, or element ID. 如果網域類別是使用標準/qualifier/key 機制進行序列化,則這個方法會傳回標記的辨識符號;如果網域類別使用其他方式進行 monikerization,這個方法會傳回空字串。If the domain class is serialized using standard /qualifier/key mechanism, this method returns the qualifier of the moniker; if the domain class uses other ways for monikerization, this method returns empty string.

Read(SerializationContext, ModelElement, XmlReader)

從 XML 將一個 CompartmentShapeMap 實例還原序列化的公用 Read () 方法。Public Read() method that deserializes one CompartmentShapeMap instance from XML.

ReadAdditionalElementData(SerializationContext, ModelElement, XmlReader)

讀取任何與元素相關聯的其他元素資料Read any additional element data associated with the element

(繼承來源 DomainClassXmlSerializer)
ReadElements(SerializationContext, ModelElement, XmlReader)

這個方法會將傳入元素內的嵌套 XML 專案還原序列化。This methods deserializes nested XML elements inside the passed-in element.

(繼承來源 BaseShapeMapSerializer)
ReadPropertiesFromAttributes(SerializationContext, ModelElement, XmlReader)

這個方法會還原序列化為 XML 屬性的所有屬性。This method deserializes all properties that are serialized as XML attributes.

(繼承來源 BaseShapeMapSerializer)
ReadRootElement(SerializationContext, ModelElement, XmlReader, ISchemaResolver)

從 XML 還原序列化根層級元素的公用 ReadRootElement () 方法。Public ReadRootElement() method that deserializes a root-level element from XML. 根層級專案與 XML 中 rest 元素之間的差異在於根可能會包含其他資訊,例如架構、版本等等。預設的實值只會呼叫 Read () 方法,它是由衍生的實作為來執行任何額外的檢查。The difference between root-level element and the rest elements in the XML is that the root may carry additional information like schema, version, etc. The default implementation just calls Read() method, it's up to the derived implementations to do any additional checks.

(繼承來源 DomainClassXmlSerializer)
Reset()

重設序列化程式Reset the serializer

(繼承來源 BaseShapeMapSerializer)
TryCreateInstance(SerializationContext, XmlReader, Partition)

這個方法會根據讀取器目前指向的標記,建立正確的 CompartmentShapeMap 實例。This method creates a correct instance of CompartmentShapeMap based on the tag currently pointed by the reader. 如果讀取器位於序列化的 CompartmentShapeMap,則會在指定的資料分割中建立新的 CompartmentShapeMap 實例,否則會傳回 null。If the reader is positioned at a serialized CompartmentShapeMap, a new CompartmentShapeMap instance will be created in the given partition, otherwise null is returned.

TryCreateMonikerInstance(SerializationContext, XmlReader, ModelElement, Guid, Partition)

這個方法會根據讀取器目前指向的標記,建立正確衍生 (的標記,包括 CompartmentShapeMap 本身) CompartmentShapeMap 實例。This method creates a Moniker of the correct derived (including CompartmentShapeMap itself) instance of CompartmentShapeMap based on the tag currently pointed by the reader.

Write(SerializationContext, ModelElement, XmlWriter)

Public Write () 方法,會將與此序列化程式實例相關聯的 ModelElement 實例序列化為 XML。Public Write() method that serializes the ModelElement instance associated with this serializer instance into XML. 這個方法只會呼叫不含 RootElementSettings 的 Write () 。This method just calls Write() with no RootElementSettings.

(繼承來源 DomainClassXmlSerializer)
Write(SerializationContext, ModelElement, XmlWriter, RootElementSettings)

Public Write () 方法會將一個 CompartmentShapeMap 實例序列化為 XML。Public Write() method that serializes one CompartmentShapeMap instance into XML.

WriteAdditionalElementData(SerializationContext, ModelElement, XmlWriter)

撰寫與元素相關聯的任何其他元素資料Write any additional element data associated with the element

(繼承來源 DomainClassXmlSerializer)
WriteElements(SerializationContext, ModelElement, XmlWriter)

這個方法會將序列化為嵌套 XML 專案的 1) 屬性,以及 2) 子模型元素序列化為 XML。This methods serializes 1) properties serialized as nested XML elements and 2) child model elements into XML.

(繼承來源 BaseShapeMapSerializer)
WriteMoniker(SerializationContext, ModelElement, XmlWriter, ModelElement, DomainRelationshipXmlSerializer)

公用 WriteMoniker () 方法,會將 monikerized CompartmentShapeMap 實例寫入 XML。Public WriteMoniker() method that writes a monikerized CompartmentShapeMap instance into XML.

WritePropertiesAsAttributes(SerializationContext, ModelElement, XmlWriter)

撰寫需要序列化為 XML 屬性的所有屬性。Write all properties that need to be serialized as XML attributes.

(繼承來源 BaseShapeMapSerializer)
WriteRootElement(SerializationContext, ModelElement, XmlWriter)

將根層級元素序列化為 XML 的公用 WriteRootElement () 方法。Public WriteRootElement() method that serializes a root-level element to XML. 根層級專案與 XML 中 rest 元素之間的差異在於根可能會包含其他資訊,例如架構、版本等等。預設的實值只會呼叫 Write () 方法,不需要 RootElementSettings,而是由衍生的實作為來執行任何額外的檢查。The difference between root-level element and the rest elements in the XML is that the root may carry additional information like schema, version, etc. The default implementation just calls Write() method with no RootElementSettings, it's up to the derived implementations to do any additional checks.

(繼承來源 DomainClassXmlSerializer)

適用於