NodeShapeSerializer.Read Method

NodeShape is abstract and cannot be instantiated, so this method throws NotSupportedException.

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


Public Overrides Sub Read ( _
    serializationContext As SerializationContext, _
    element As ModelElement, _
    reader As XmlReader _
public override void Read(
    SerializationContext serializationContext,
    ModelElement element,
    XmlReader reader
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


  • reader
    Type: XmlReader

    XmlReader to read serialized data from.


When this method is called, caller guarantees that the passed-in XML reader is positioned at the open XML tag of the NodeShape element that is about to be deserialized. The method needs to ensure that when it returns, the reader is positioned at the open XML tag of the next sibling element, or the close tag of the parent element (or EOF).

.NET Framework Security

See Also


NodeShapeSerializer Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace