Freigeben über


PortShapeSerializer.Read Method

Definition

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

public:
 override void Read(Microsoft::VisualStudio::Modeling::SerializationContext ^ serializationContext, Microsoft::VisualStudio::Modeling::ModelElement ^ element, System::Xml::XmlReader ^ reader);
public override void Read (Microsoft.VisualStudio.Modeling.SerializationContext serializationContext, Microsoft.VisualStudio.Modeling.ModelElement element, System.Xml.XmlReader reader);
override this.Read : Microsoft.VisualStudio.Modeling.SerializationContext * Microsoft.VisualStudio.Modeling.ModelElement * System.Xml.XmlReader -> unit
Public Overrides Sub Read (serializationContext As SerializationContext, element As ModelElement, reader As XmlReader)

Parameters

serializationContext
SerializationContext

Serialization context.

element
ModelElement

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

reader
XmlReader

XmlReader to read serialized data from.

Remarks

When this method is called, caller guarantees that the passed-in XML reader is positioned at the open XML tag of the PortShape 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).

Applies to