Export (0) Print
Expand All

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

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

Namespace:  Microsoft.VisualStudio.Modeling.DslDefinition
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.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

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

Show:
© 2014 Microsoft