Data.SqlExpr.TSQLConnection.AddConnectNotification

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

Delphi

procedure AddConnectNotification(Listener: TObject; Event: TConnectChangeEvent);

C++

void __fastcall AddConnectNotification(System::TObject* Listener, Data::Db::TConnectChangeEvent Event);

プロパティ

種類 可視性 ソース ユニット
procedure
function
public
Data.SqlExpr.pas
Data.SqlExpr.hpp
Data.SqlExpr TSQLConnection

説明

接続コンポーネントを使用するリスナ オブジェクトを登録します。

AddConnectNotification は、リスナ オブジェクトを接続コンポーネントに関連づけるために使用されます。リスナ コンポーネントは、接続が作成または終了された際に応答する、イベント ハンドラを用意します。

Listener は、登録されるリスナ オブジェクトです。Event は、接続が確立された後、または終了される前に呼び出される、イベント ハンドラです。

関連項目