Delen via


MoveableDecoratorHostShapeSerializer.Read Method

Unlike DecoratorHostShape, MoveableDecoratorHostShape does need to be serialized to preserve the location information. However, due to the special handling of decorators and host shapes in CDS, the normal generated serialization won't work. So we short-circuit the generated serializer here, and handle the serialization in ShapeElementSerializer.CustomReadElements() instead.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

Syntax

'Declaration
Public Overrides Sub Read ( _
    serializationContext As SerializationContext, _
    element As ModelElement, _
    reader As XmlReader _
)
public override void Read(
    SerializationContext serializationContext,
    ModelElement element,
    XmlReader reader
)
public:
virtual void Read(
    SerializationContext^ serializationContext, 
    ModelElement^ element, 
    XmlReader^ reader
) override
abstract Read : 
        serializationContext:SerializationContext * 
        element:ModelElement * 
        reader:XmlReader -> unit  
override Read : 
        serializationContext:SerializationContext * 
        element:ModelElement * 
        reader:XmlReader -> unit
public override function Read(
    serializationContext : SerializationContext, 
    element : ModelElement, 
    reader : XmlReader
)

Parameters

.NET Framework Security

See Also

Reference

MoveableDecoratorHostShapeSerializer Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace