다음을 통해 공유


DslDefinitionModelSerializationHelperBase.WriteRootElement Method

Definition

Write an element as the root of XML.

public:
 virtual void WriteRootElement(Microsoft::VisualStudio::Modeling::SerializationContext ^ serializationContext, Microsoft::VisualStudio::Modeling::ModelElement ^ rootElement, System::Xml::XmlWriter ^ writer);
public virtual void WriteRootElement (Microsoft.VisualStudio.Modeling.SerializationContext serializationContext, Microsoft.VisualStudio.Modeling.ModelElement rootElement, System.Xml.XmlWriter writer);
abstract member WriteRootElement : Microsoft.VisualStudio.Modeling.SerializationContext * Microsoft.VisualStudio.Modeling.ModelElement * System.Xml.XmlWriter -> unit
override this.WriteRootElement : Microsoft.VisualStudio.Modeling.SerializationContext * Microsoft.VisualStudio.Modeling.ModelElement * System.Xml.XmlWriter -> unit
Public Overridable Sub WriteRootElement (serializationContext As SerializationContext, rootElement As ModelElement, writer As XmlWriter)

Parameters

serializationContext
SerializationContext

Serialization context.

rootElement
ModelElement

Root element instance that will be serialized.

writer
XmlWriter

XmlWriter to write serialized data to.

Applies to