語言

SqlDataReader.IDisposable.Dispose 方法

定義

釋放資料讀取器所使用的所有資源。

新開發的話,請使用 Microsoft。Data.SqlClient。 本頁說明了 System.Data.SqlClient。

 virtual void System.IDisposable.Dispose() = IDisposable::Dispose;
void IDisposable.Dispose();
abstract member System.IDisposable.Dispose : unit -> unit
override this.System.IDisposable.Dispose : unit -> unit
Sub Dispose () Implements IDisposable.Dispose

實作

備註

此成員為明確介面成員實作。 它只能在實 SqlDataReader 例投射到 IDisposable 介面時使用。

適用於