BaseShapeMapSerializer.ReadElements Method
This methods deserializes nested XML elements inside the passed-in element.
Namespace: Microsoft.VisualStudio.Modeling.DslDefinition
Assembly: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)
Syntax
'Déclaration
Protected Overrides Sub ReadElements ( _
serializationContext As SerializationContext, _
element As ModelElement, _
reader As XmlReader _
)
protected override void ReadElements(
SerializationContext serializationContext,
ModelElement element,
XmlReader reader
)
protected:
virtual void ReadElements(
SerializationContext^ serializationContext,
ModelElement^ element,
XmlReader^ reader
) override
abstract ReadElements :
serializationContext:SerializationContext *
element:ModelElement *
reader:XmlReader -> unit
override ReadElements :
serializationContext:SerializationContext *
element:ModelElement *
reader:XmlReader -> unit
protected override function ReadElements(
serializationContext : SerializationContext,
element : ModelElement,
reader : XmlReader
)
Parameters
- serializationContext
Type: Microsoft.VisualStudio.Modeling.SerializationContext
Serialization context.
- element
Type: Microsoft.VisualStudio.Modeling.ModelElement
In-memory BaseShapeMap instance that will get the deserialized data.
- reader
Type: System.Xml.XmlReader
XmlReader to read serialized data from.
Remarks
The caller will guarantee that the current element does have nested XML elements, and the call will position the reader at the open tag of the first child XML element. This method will read as many child XML elements as it can. It returns under three circumstances: 1) When an unknown child XML element is encountered. In this case, this method will position the reader at the open tag of the unknown element. This implies that if the first child XML element is unknown, this method should return immediately and do nothing. 2) When all child XML elemnets are read. In this case, the reader will be positioned at the end tag of the parent element. 3) EOF.
.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.