Share via


DomainClassXmlSerializer.Write Method (SerializationContext, ModelElement, XmlWriter, RootElementSettings)

Serializes the 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 Write ( _
    serializationContext As SerializationContext, _
    element As ModelElement, _
    writer As XmlWriter, _
    rootElementSettings As RootElementSettings _
)
public virtual void Write(
    SerializationContext serializationContext,
    ModelElement element,
    XmlWriter writer,
    RootElementSettings rootElementSettings
)
public:
virtual void Write(
    SerializationContext^ serializationContext, 
    ModelElement^ element, 
    XmlWriter^ writer, 
    RootElementSettings^ rootElementSettings
)
abstract Write : 
        serializationContext:SerializationContext * 
        element:ModelElement * 
        writer:XmlWriter * 
        rootElementSettings:RootElementSettings -> unit  
override Write : 
        serializationContext:SerializationContext * 
        element:ModelElement * 
        writer:XmlWriter * 
        rootElementSettings:RootElementSettings -> unit
public function Write(
    serializationContext : SerializationContext, 
    element : ModelElement, 
    writer : XmlWriter, 
    rootElementSettings : RootElementSettings
)

Parameters

  • writer
    Type: XmlWriter

    The XmlReader from which to write.

.NET Framework Security

See Also

Reference

DomainClassXmlSerializer Class

Write Overload

Microsoft.VisualStudio.Modeling Namespace