Closes the stream, changes the ReadState to Closed, and sets all the properties back to zero.
[Visual Basic] Overrides Public Sub Close() [C#] public override void Close(); [C++] public: override void Close(); [JScript] public override function Close();
This method also releases any resources held while reading. This method also calls Close on the underlying streams provided in the XmlReader constructor.
If Close has already been called, no action is performed.
XmlTextReader Class | XmlTextReader Members | System.NewXml Namespace