DomainClassXmlSerializer.ReadRootElement Method
Deserializes the root model element from XML.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Syntax
'Declaration
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.SerializationContextThe serialization context that stores serialization errors, if any.
element
Type: Microsoft.VisualStudio.Modeling.ModelElementThe model element instance to read from.
reader
Type: XmlReaderThe XmlReader from which to read.
schemaResolver
Type: Microsoft.VisualStudio.Modeling.ISchemaResolverThe 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.