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

System.Xml.XmlTextReader.Read Method

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

public override 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

Note:

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

This method overrides XmlReader.Read.

Requirements

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