XmlReader.Close XmlReader.Close XmlReader.Close XmlReader.Close Method

Definition

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

public:
 abstract void Close();
public abstract void Close ();
abstract member Close : unit -> unit
Public MustOverride Sub Close ()

Exceptions

An XmlReader method was called before a previous asynchronous operation finished. In this case, InvalidOperationException is thrown with the message "An asynchronous operation is already in progress."

Remarks

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

Applies to