Mono Class Library: System.Xml.XmlReader Overview | Members

System.Xml.XmlReader.Read Method

Moves the position of the current instance to the next node in the stream, exposing its properties.

public abstract bool Read ()

Returns

A bool where true indicates the node was read successfully, and false indicates there were no more nodes to read.

Exceptions

TypeReason
System.Xml.XmlExceptionAn error occurred while parsing the XML.

Remarks

Operation
As described above.

Note to Inheritors
This method must be overridden in order to provide the functionality as described herein, as there is no default implementation.

Usage
When a reader is first created and initialized, there is no information available. Calling this method is required to read the first node.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0