次の方法で共有


IDbConnection.Close メソッド

データベースへの接続を閉じます。

名前空間:  Microsoft.ReportingServices.DataProcessing
アセンブリ:   Microsoft.ReportingServices.Interfaces (Microsoft.ReportingServices.Interfaces.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts (Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)

構文

'宣言
Sub Close
'使用
Dim instance As IDbConnection

instance.Close()
void Close()
void Close()
abstract Close : unit -> unit
function Close()

説明

Close メソッドは、保留中のすべてのトランザクションをロールバックします。 その後、接続を接続プールに解放するか、接続プールが無効な場合は接続を閉じます。

アプリケーションでは、例外を生成せずに Close を複数回呼び出すことができます。

関連項目

参照

IDbConnection インターフェイス

Microsoft.ReportingServices.DataProcessing 名前空間