This topic has not yet been rated - Rate this topic

LineLabelShapeSerializer.Write Method (SerializationContext, ModelElement, XmlWriter, RootElementSettings)

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

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
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).

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.