ReadXml Method
Collapse the table of content
Expand the table of content

IXmlSerializable.ReadXml Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Generates an object from its XML representation.

Namespace:  System.Xml.Serialization
Assembly:  System.Xml (in System.Xml.dll)

'Declaration
Sub ReadXml ( _
	reader As XmlReader _
)

Parameters

reader
Type: System.Xml.XmlReader
The XmlReader stream from which the object is deserialized.

The implementation you provide for this method must be able to reconstitute your object using the information that was written by the WriteXml method.

When this method is called, the reader should be positioned at the start of the element that wraps the information for your type. That is, the reader should be positioned just before the start tag that indicates the beginning of a serialized object. When this method returns, it must have read the entire element from beginning to end, including all of its contents.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft