DslDefinitionModelSerializationHelperBase.WriteRootElement Method
Write an element as the root of XML.
Namespace: Microsoft.VisualStudio.Modeling.DslDefinition
Assembly: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.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.SerializationContextSerialization context.
rootElement
Type: Microsoft.VisualStudio.Modeling.ModelElementRoot element instance that will be serialized.
writer
Type: XmlWriterXmlWriter 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.