DomainClassXmlSerializer.WriteRootElement Method
Serializes the root model element instance associated with this serializer instance into XML.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Syntax
'Declaration
Public Overridable Sub WriteRootElement ( _
serializationContext As SerializationContext, _
element As ModelElement, _
writer As XmlWriter _
)
public virtual void WriteRootElement(
SerializationContext serializationContext,
ModelElement element,
XmlWriter writer
)
public:
virtual void WriteRootElement(
SerializationContext^ serializationContext,
ModelElement^ element,
XmlWriter^ writer
)
abstract WriteRootElement :
serializationContext:SerializationContext *
element:ModelElement *
writer:XmlWriter -> unit
override WriteRootElement :
serializationContext:SerializationContext *
element:ModelElement *
writer:XmlWriter -> unit
public function WriteRootElement(
serializationContext : SerializationContext,
element : ModelElement,
writer : XmlWriter
)
Parameters
serializationContext
Type: Microsoft.VisualStudio.Modeling.SerializationContextThe serialization context that stores serialization errors, if any.
element
Type: Microsoft.VisualStudio.Modeling.ModelElementThe model element instance that will be serialized.
writer
Type: XmlWriterThe XmlReader from which to write.
.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.