Read Method

LinkShapeSerializer.Read Method

LinkShape 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 override void Read(
	SerializationContext serializationContext,
	ModelElement element,
	XmlReader reader


Type: Microsoft.VisualStudio.Modeling.SerializationContext

Serialization context.

Type: Microsoft.VisualStudio.Modeling.ModelElement

In-memory LinkShape instance that will get the deserialized data.

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 LinkShape 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).

© 2015 Microsoft