Deserializes a given model element instance from XML.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'Declaration
Public MustOverride Sub Read ( _
serializationContext As SerializationContext, _
element As ModelElement, _
reader As XmlReader _
)
'Usage
Dim instance As DomainClassXmlSerializer
Dim serializationContext As SerializationContext
Dim element As ModelElement
Dim reader As XmlReader
instance.Read(serializationContext, element, _
reader)
public abstract void Read(
SerializationContext serializationContext,
ModelElement element,
XmlReader reader
)
public:
virtual void Read(
SerializationContext^ serializationContext,
ModelElement^ element,
XmlReader^ reader
) abstract
public abstract function Read(
serializationContext : SerializationContext,
element : ModelElement,
reader : XmlReader
)
Parameters
serializationContext
Type: Microsoft.VisualStudio.Modeling.SerializationContextThe serialization context that stores the serialization result.
element
Type: Microsoft.VisualStudio.Modeling.ModelElementIn-memory model element instance that will get the deserialized data.
reader
Type: System.Xml.XmlReaderThe XmlReader from which to read.
Remarks
When this method is called, the caller guarantees that the XmlReader is positioned at the open XML tag of the element that is about to be deserialized.
The method needs to ensure that when it returns, the reader is positioned at either the open XML tag of the next sibling element or at the close tag of the parent element or 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.
See Also
Reference
DomainClassXmlSerializer Class