GenericLinkShapeSerializer::Write Method (SerializationContext^, ModelElement^, XmlWriter^, RootElementSettings^)

 

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

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

public:
virtual void Write(
	SerializationContext^ serializationContext,
	ModelElement^ element,
	XmlWriter^ writer,
	RootElementSettings^ rootElementSettings
) override

Parameters

serializationContext
Type: Microsoft.VisualStudio.Modeling::SerializationContext^

Serialization context.

element
Type: Microsoft.VisualStudio.Modeling::ModelElement^

GenericLinkShape instance to be serialized.

writer
Type: System.Xml::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).

Return to top
Show: