DomainClassXmlSerializer.ReadRootElement Method
Deserializes the root model element from XML.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'宣告
Public Overridable Sub ReadRootElement ( _
serializationContext As SerializationContext, _
element As ModelElement, _
reader As XmlReader, _
schemaResolver As ISchemaResolver _
)
public virtual void ReadRootElement(
SerializationContext serializationContext,
ModelElement element,
XmlReader reader,
ISchemaResolver schemaResolver
)
public:
virtual void ReadRootElement(
SerializationContext^ serializationContext,
ModelElement^ element,
XmlReader^ reader,
ISchemaResolver^ schemaResolver
)
abstract ReadRootElement :
serializationContext:SerializationContext *
element:ModelElement *
reader:XmlReader *
schemaResolver:ISchemaResolver -> unit
override ReadRootElement :
serializationContext:SerializationContext *
element:ModelElement *
reader:XmlReader *
schemaResolver:ISchemaResolver -> unit
public function ReadRootElement(
serializationContext : SerializationContext,
element : ModelElement,
reader : XmlReader,
schemaResolver : ISchemaResolver
)
Parameters
- serializationContext
Type: Microsoft.VisualStudio.Modeling.SerializationContext
The serialization context that stores serialization errors, if any.
- element
Type: Microsoft.VisualStudio.Modeling.ModelElement
The model element instance to read from.
- reader
Type: System.Xml.XmlReader
The XmlReader from which to read.
- schemaResolver
Type: Microsoft.VisualStudio.Modeling.ISchemaResolver
The ISchemaResolver interface, which resolves an XML schema.
.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.