System.Data.Odbc.OdbcDataReader.Close Method

Closes the System.Data.Odbc.OdbcDataReader object.

Syntax

public override void Close ()

Remarks

You must explicitly call the OdbcDataReader.Close method when you are finished using the System.Data.Odbc.OdbcDataReader to use the associated System.Data.Odbc.OdbcConnection for any other purpose.

Note:

Do not call Close or Dispose on a Connection, a DataReader, or any other managed object in the Finalize method of your class. In a finalizer, you should only release unmanaged resources that your class owns directly. If your class does not own any unmanaged resources, do not include a Finalize method in your class definition. For more information, see Garbage Collection.

Requirements

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