Compartir a través de


DslDefinitionModelSerializationHelperBase.ReadRootElement Method

Definition

Read an element from the root of XML.

protected:
 virtual void ReadRootElement(Microsoft::VisualStudio::Modeling::SerializationContext ^ serializationContext, Microsoft::VisualStudio::Modeling::ModelElement ^ rootElement, System::Xml::XmlReader ^ reader, Microsoft::VisualStudio::Modeling::ISchemaResolver ^ schemaResolver);
protected virtual void ReadRootElement (Microsoft.VisualStudio.Modeling.SerializationContext serializationContext, Microsoft.VisualStudio.Modeling.ModelElement rootElement, System.Xml.XmlReader reader, Microsoft.VisualStudio.Modeling.ISchemaResolver schemaResolver);
abstract member ReadRootElement : Microsoft.VisualStudio.Modeling.SerializationContext * Microsoft.VisualStudio.Modeling.ModelElement * System.Xml.XmlReader * Microsoft.VisualStudio.Modeling.ISchemaResolver -> unit
override this.ReadRootElement : Microsoft.VisualStudio.Modeling.SerializationContext * Microsoft.VisualStudio.Modeling.ModelElement * System.Xml.XmlReader * Microsoft.VisualStudio.Modeling.ISchemaResolver -> unit
Protected Overridable Sub ReadRootElement (serializationContext As SerializationContext, rootElement As ModelElement, reader As XmlReader, schemaResolver As ISchemaResolver)

Parameters

serializationContext
SerializationContext

Serialization context.

rootElement
ModelElement

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

reader
XmlReader

XmlReader to read serialized data from.

schemaResolver
ISchemaResolver

An ISchemaResolver that allows the serializer to do schema validation on the root element (and everything inside it).

Applies to