System.Data.IDataReader.Close Method

Closes the System.Data.IDataReader Object.

Syntax

public void Close ()

Remarks

You must explicitly call the IDataReader.Close method when you are through using the System.Data.IDataReader to use the associated System.Data.IDbConnection for any other purpose.

Requirements

Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0