DslDefinitionModelSerializationHelperBase.ReadRootElement Method
Read an element from the root of XML.
Namespace: Microsoft.VisualStudio.Modeling.DslDefinition
Assembly: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)
Syntax
'Declaração
Protected Overridable Sub ReadRootElement ( _
serializationContext As SerializationContext, _
rootElement As ModelElement, _
reader As XmlReader, _
schemaResolver As ISchemaResolver _
)
protected virtual void ReadRootElement(
SerializationContext serializationContext,
ModelElement rootElement,
XmlReader reader,
ISchemaResolver schemaResolver
)
protected:
virtual void ReadRootElement(
SerializationContext^ serializationContext,
ModelElement^ rootElement,
XmlReader^ reader,
ISchemaResolver^ schemaResolver
)
abstract ReadRootElement :
serializationContext:SerializationContext *
rootElement:ModelElement *
reader:XmlReader *
schemaResolver:ISchemaResolver -> unit
override ReadRootElement :
serializationContext:SerializationContext *
rootElement:ModelElement *
reader:XmlReader *
schemaResolver:ISchemaResolver -> unit
protected function ReadRootElement(
serializationContext : SerializationContext,
rootElement : ModelElement,
reader : XmlReader,
schemaResolver : ISchemaResolver
)
Parameters
- serializationContext
Type: Microsoft.VisualStudio.Modeling.SerializationContext
Serialization context.
- rootElement
Type: Microsoft.VisualStudio.Modeling.ModelElement
In-memory element instance that will get the deserialized data.
- reader
Type: System.Xml.XmlReader
XmlReader to read serialized data from.
- schemaResolver
Type: Microsoft.VisualStudio.Modeling.ISchemaResolver
An ISchemaResolver that allows the serializer to do schema validation on the root element (and everything inside it).
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.