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
'Declaration
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
- serializationContext
Type: Microsoft.VisualStudio.Modeling.SerializationContext
Serialization context.
- rootElement
Type: Microsoft.VisualStudio.Modeling.ModelElement
Root element instance that will be serialized.
- writer
Type: System.Xml.XmlWriter
XmlWriter to write serialized data to.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.