DomainClassXmlSerializer.Read Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Public Read() method that deserializes the given ModelElement instance from XML.
public:
virtual void Read(Microsoft::VisualStudio::Modeling::SerializationContext ^ serializationContext, Microsoft::VisualStudio::Modeling::ModelElement ^ element, System::Xml::XmlReader ^ reader);
public virtual void Read (Microsoft.VisualStudio.Modeling.SerializationContext serializationContext, Microsoft.VisualStudio.Modeling.ModelElement element, System.Xml.XmlReader reader);
abstract member Read : Microsoft.VisualStudio.Modeling.SerializationContext * Microsoft.VisualStudio.Modeling.ModelElement * System.Xml.XmlReader -> unit
override this.Read : Microsoft.VisualStudio.Modeling.SerializationContext * Microsoft.VisualStudio.Modeling.ModelElement * System.Xml.XmlReader -> unit
Public Overridable Sub Read (serializationContext As SerializationContext, element As ModelElement, reader As XmlReader)
Parameters
- serializationContext
- SerializationContext
Serialization context.
- element
- ModelElement
In-memory ModelElement instance that will get the deserialized data.
- reader
- XmlReader
XmlReader to read serialized data from.
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).