System.Xml.ReadState Enum

public enum ReadState

Base Types

Object
  ValueType
    Enum
      ReadState

Assembly

System.Xml

Library

XML

Summary

Specifies the read state of an instance of a class derived from the XmlReader class.

Description

When a reader is instantiated, the read state is set to Initial . When the System.Xml.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 System.Xml.XmlReader.Close method is called, the read state is set to Closed .

See Also

System.Xml Namespace

Members

ReadState Fields

ReadState.Closed Field
ReadState.EndOfFile Field
ReadState.Error Field
ReadState.Initial Field
ReadState.Interactive Field
ReadState.value__ Field


ReadState.Closed Field

Closed = 4;

Summary

The System.Xml.XmlReader.Close method has been called.

See Also

System.Xml.ReadState Enum, System.Xml Namespace

ReadState.EndOfFile Field

EndOfFile = 3;

Summary

The end of the XML data has been reached.

See Also

System.Xml.ReadState Enum, System.Xml Namespace

ReadState.Error Field

Error = 2;

Summary

An error occurred that prevents the read operation from continuing.

See Also

System.Xml.ReadState Enum, System.Xml Namespace

ReadState.Initial Field

Initial = 0;

Summary

The System.Xml.XmlReader.Read method has not been called.

See Also

System.Xml.ReadState Enum, System.Xml Namespace

ReadState.Interactive Field

Interactive = 1;

Summary

The System.Xml.XmlReader.Read method has been called. Additional methods may now be called on the reader.

See Also

System.Xml.ReadState Enum, System.Xml Namespace

ReadState.value__ Field

value__;

See Also

System.Xml.ReadState Enum, System.Xml Namespace