Partilhar via


DslDefinitionModelSerializationHelperBase.WriteRootElement Method

Write an element as the root of XML.

Namespace:  Microsoft.VisualStudio.Modeling.DslDefinition
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)

Syntax

'Declaração
Public Overridable Sub WriteRootElement ( _
    serializationContext As SerializationContext, _
    rootElement As ModelElement, _
    writer As XmlWriter _
)
public virtual void WriteRootElement(
    SerializationContext serializationContext,
    ModelElement rootElement,
    XmlWriter writer
)
public:
virtual void WriteRootElement(
    SerializationContext^ serializationContext, 
    ModelElement^ rootElement, 
    XmlWriter^ writer
)
abstract WriteRootElement : 
        serializationContext:SerializationContext * 
        rootElement:ModelElement * 
        writer:XmlWriter -> unit 
override WriteRootElement : 
        serializationContext:SerializationContext * 
        rootElement:ModelElement * 
        writer:XmlWriter -> unit 
public function WriteRootElement(
    serializationContext : SerializationContext, 
    rootElement : ModelElement, 
    writer : XmlWriter
)

Parameters

.NET Framework Security

See Also

Reference

DslDefinitionModelSerializationHelperBase Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace