FireDAC.Comp.Client.TFDCustomCommand.AcquireConnection

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function AcquireConnection: TFDCustomConnection;

C++

TFDCustomConnection* __fastcall AcquireConnection();

プロパティ

種類 可視性 ソース ユニット
function public
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDCustomCommand

説明

実際の接続オブジェクトへの参照を取得します。


AcquireConnection メソッドは、接続オブジェクトへの参照を、Connection または ConnectionName プロパティの値に応じて取得し、その使用回数をインクリメントします。

使用後、ReleaseConnection メソッドの呼び出しにより、接続オブジェクトを解放する必要があります。コマンド オブジェクトは、Prepare を呼び出したとき、自動的に接続されます。接続が終了するのは、Unprepare が呼び出されたときです。

関連項目