OracleDataReader.Close 方法
定义
关闭 OracleDataReader 对象。Closes the OracleDataReader object.
public:
virtual void Close();
public:
override void Close();
public void Close ();
public override void Close ();
abstract member Close : unit -> unit
override this.Close : unit -> unit
override this.Close : unit -> unit
Public Sub Close ()
Public Overrides Sub Close ()
实现
注解
OracleDataReader在任意给定时间,都可以打开多个。More than one OracleDataReader can be open at any given time.
注意
不要对 Close Dispose 连接、或 DataReader 类的方法中的任何其他托管对象调用或 Finalize 。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. 如果类不拥有任何非托管资源,则不要在类定义中包含 Finalize 方法。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.