System.Xml.XmlReader.Close Method

When overridden in a derived class, changes the XmlReader.ReadState to Closed.

Syntax

public virtual void Close ()

Remarks

This method also releases any resources held during reading. If XmlReader.Close has already been called, no action is performed.

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