This documentation is archived and is not being maintained.

OracleDataReader.Close Method

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Closes the OracleDataReader object.

[Visual Basic]
Public Overridable Sub Close() Implements IDataReader.Close
public virtual void Close();
public: virtual void Close();
public function Close();




More than one OracleDataReader can be open at any given time.

CAUTION   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 Programming for Garbage Collection.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

OracleDataReader Class | OracleDataReader Members | System.Data.OracleClient Namespace