System.Xml.ReadState Enumeration

Specifies the state of the reader.

Syntax

public enum ReadState

Remarks

When a reader is instantiated, the read state is set to Initial. When the XmlReader.Read method is called, the read state is changed to Interactive. If an error occurs during a read operation, the read state is changed to Error. When the end of the XML data is reached, the read state is set to EndOfFile. When the XmlReader.Close method is called, the read state is set to Closed.

Members

Member NameDescription
Closed

The XmlReader.Close method has been called.

EndOfFile

The end of the file has been reached successfully.

Error

An error occurred that prevents the read operation from continuing.

Initial

The Read method has not been called.

Interactive

The Read method has been called. Additional methods may be called on the reader.

Requirements

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