DslDefinitionModelSerializationHelperBase.ReadRootElement Method
Read an element from the root of XML.
Namespace: Microsoft.VisualStudio.Modeling.DslDefinition
Assembly: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0.dll)
Syntax
'Declaration
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.SerializationContextSerialization context.
rootElement
Type: Microsoft.VisualStudio.Modeling.ModelElementIn-memory element instance that will get the deserialized data.
reader
Type: System.Xml.XmlReaderXmlReader to read serialized data from.
schemaResolver
Type: Microsoft.VisualStudio.Modeling.ISchemaResolverAn 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.