DslDefinitionModelSerializationHelperBase.ReadRootElement Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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).