XmlNodeReader.get_ReadState Property

public ReadState ReadState { get; }

Gets the current state of the reader.

Syntax

C#
public ReadState ReadState { get; }
Visual Basic
Public ReadOnly Property ReadState As ReadState

Property Value

Type:
System.Xml.ReadState
Description:
One of the ReadState values.

Remarks

The ReadState property indicates the current position of the reader in the XML document. It can be one of the following values:

This property is useful for determining the current status of the XML reading process and for handling potential errors or end-of-file conditions.

Note: The ReadState property is read-only. You cannot set it directly. Its value changes as you call methods like Read() or Close().

See Also

XmlNodeReader Class
System.Xml Namespace