共用方式為


DslLibraryDefinesElementsSerializer.Read Method

Definition

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