Partager via


DomainRelationshipSerializer.Read Method

Definition

Public Read() method that deserializes one DomainRelationship instance from XML.

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 DomainRelationship 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 DomainRelationship 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