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

protected:
 override void WriteElements(Microsoft::VisualStudio::Modeling::SerializationContext ^ serializationContext, Microsoft::VisualStudio::Modeling::ModelElement ^ element, System::Xml::XmlWriter ^ writer);
protected override void WriteElements (Microsoft.VisualStudio.Modeling.SerializationContext serializationContext, Microsoft.VisualStudio.Modeling.ModelElement element, System.Xml.XmlWriter writer);
override this.WriteElements : Microsoft.VisualStudio.Modeling.SerializationContext * Microsoft.VisualStudio.Modeling.ModelElement * System.Xml.XmlWriter -> unit
Protected Overrides Sub WriteElements (serializationContext As SerializationContext, element As ModelElement, writer As XmlWriter)

參數

serializationContext
SerializationContext

序列化內容。Serialization context.

element
ModelElement

要序列化的 LinkShape 實例。LinkShape instance to be serialized.

writer
XmlWriter

要將序列化資料寫入其中的 XmlWriter。XmlWriter to write serialized data to.

適用於