LineLabelShapeSerializer.Write Method (SerializationContext, ModelElement, XmlWriter, RootElementSettings)
Visual Studio 2012
Public Write() method that serializes one LineLabelShape instance into XML.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
public override void Write( SerializationContext serializationContext, ModelElement element, XmlWriter writer, RootElementSettings rootElementSettings )
Parameters
- serializationContext
- Type: Microsoft.VisualStudio.Modeling.SerializationContext
Serialization context.
- element
- Type: Microsoft.VisualStudio.Modeling.ModelElement
LineLabelShape instance to be serialized.
- writer
- Type: XmlWriter
XmlWriter to write serialized data to.
- rootElementSettings
- Type: Microsoft.VisualStudio.Modeling.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).
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.