Share via


ShapeSerializer.Write Method

Definition

Public Write() method that serializes one Shape instance into XML.

public:
 override void Write(Microsoft::VisualStudio::Modeling::SerializationContext ^ serializationContext, Microsoft::VisualStudio::Modeling::ModelElement ^ element, System::Xml::XmlWriter ^ writer, Microsoft::VisualStudio::Modeling::RootElementSettings ^ rootElementSettings);
public override void Write (Microsoft.VisualStudio.Modeling.SerializationContext serializationContext, Microsoft.VisualStudio.Modeling.ModelElement element, System.Xml.XmlWriter writer, Microsoft.VisualStudio.Modeling.RootElementSettings rootElementSettings);
override this.Write : Microsoft.VisualStudio.Modeling.SerializationContext * Microsoft.VisualStudio.Modeling.ModelElement * System.Xml.XmlWriter * Microsoft.VisualStudio.Modeling.RootElementSettings -> unit
Public Overrides Sub Write (serializationContext As SerializationContext, element As ModelElement, writer As XmlWriter, rootElementSettings As RootElementSettings)

Parameters

serializationContext
SerializationContext

Serialization context.

element
ModelElement

Shape instance to be serialized.

writer
XmlWriter

XmlWriter to write serialized data to.

rootElementSettings
RootElementSettings

The root element settings if the passed in element is serialized as a root element in the XML. The root element contains additional information like schema target namespace, version, etc. This should only be passed for root-level elements. Null should be passed for rest elements (and ideally call the Write() method without this parameter).

Applies to