XmlSerializableServices::ReadNodes Method (XmlReader^)
.NET Framework (current version)
Reads a set of XML nodes from the specified reader and returns the result.
Assembly: System.Runtime.Serialization (in System.Runtime.Serialization.dll)
Parameters
- xmlReader
-
Type:
System.Xml::XmlReader^
An XmlReader used for reading.
| Exception | Condition |
|---|---|
| ArgumentNullException | The xmlReader argument is null. |
| SerializationException | While reading, a null node was encountered. |
This method reads all XML contained within the node the reader is positioned on when this call is made. This enables it to read and store all XML as an array of XmlNode objects. It is a helper method used by the types that implement IXmlSerializable and that use the ReadXml method.
.NET Framework
Available since 3.0
Available since 3.0
Show: