Write Method (SerializationContext, ModelElement, XmlWriter, RootElementSettings)
Collapse the table of content
Expand the table of content

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

Public Write() method that serializes one PortShape 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

PortShape 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).

Show:
© 2016 Microsoft