다음을 통해 공유


DslLibrarySerializer.ReadElements Method

Definition

Load imported DslLibraries after reading the current DslLibrary. Since all cross-model references are monikers, which are resolved during transaction commit, it doesn't matter whether we load current model first, or imported model first.

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

Parameters

serializationContext
SerializationContext

Serialization context.

element
ModelElement

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

reader
XmlReader

XmlReader to read serialized data from.

Remarks

The caller will guarantee that the current element does have nested XML elements, and the call will position the reader at the open tag of the first child XML element. This method will read as many child XML elements as it can. It returns under three circumstances: 1) When an unknown child XML element is encountered. In this case, this method will position the reader at the open tag of the unknown element. This implies the if the first child XML element is unknown, this method should return immediately and do nothing. 2) When all child XML elemnets are read. In this case, the reader will be positioned at the end tag of the parent element. 3) EOF.

Applies to