DslDefinitionModelSerializationHelperBase.WriteRootElement Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.