DomainClassXmlSerializer.Read Method

Deserializes a given model element instance 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 Read ( _
    serializationContext As SerializationContext, _
    element As ModelElement, _
    reader As XmlReader _
)
public virtual void Read(
    SerializationContext serializationContext,
    ModelElement element,
    XmlReader reader
)
public:
virtual void Read(
    SerializationContext^ serializationContext, 
    ModelElement^ element, 
    XmlReader^ reader
)
abstract Read : 
        serializationContext:SerializationContext * 
        element:ModelElement * 
        reader:XmlReader -> unit  
override Read : 
        serializationContext:SerializationContext * 
        element:ModelElement * 
        reader:XmlReader -> unit
public function Read(
    serializationContext : SerializationContext, 
    element : ModelElement, 
    reader : XmlReader
)

Parameters

  • reader
    Type: XmlReader

    The XmlReader from which to read.

Remarks

When this method is called, caller guarantees that the passed-in XML reader 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 the open XML tag of the next sibling element, or the close tag of the parent element (or EOF).

.NET Framework Security

See Also

Reference

DomainClassXmlSerializer Class

Microsoft.VisualStudio.Modeling Namespace