MoveableDecoratorHostShapeSerializer.Write (Método) (SerializationContext, ModelElement, XmlWriter, RootElementSettings)

A diferencia de DecoratorHostShape, MoveableDecoratorHostShape necesita serializarse conservar la información de ubicación.Sin embargo, debido a un control especial de elementos decorator y host forma en CDS, la serialización generada normal no funcionará.Cortocircuitamos tan el serializador generado aquí, y manejamos la serialización en ShapeElementSerializer.CustomWriteElements() en su lugar.

Espacio de nombres:  Microsoft.VisualStudio.Modeling.Diagrams
Ensamblado:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (en Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)

Sintaxis

'Declaración
Public Overrides Sub Write ( _
    serializationContext As SerializationContext, _
    element As ModelElement, _
    writer As XmlWriter, _
    rootElementSettings As RootElementSettings _
)
public override void Write(
    SerializationContext serializationContext,
    ModelElement element,
    XmlWriter writer,
    RootElementSettings rootElementSettings
)

Parámetros

Seguridad de .NET Framework

Vea también

Referencia

MoveableDecoratorHostShapeSerializer Clase

Write (Sobrecarga)

Microsoft.VisualStudio.Modeling.Diagrams (Espacio de nombres)