Windows Dev Center

IXmlSerializable.ReadXml Method

Generates an object from its XML representation.

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

void ReadXml(
	XmlReader 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

© 2015 Microsoft