Data.SqlExpr.TSQLConnection.AddConnectNotification
Delphi
procedure AddConnectNotification(Listener: TObject; Event: TConnectChangeEvent);
C++
void __fastcall AddConnectNotification(System::TObject* Listener, Data::Db::TConnectChangeEvent Event);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Data.SqlExpr.pas Data.SqlExpr.hpp |
Data.SqlExpr | TSQLConnection |
Description
Registers a listener object that uses the connection component.
AddConnectNotification is used to associate listener objects with the connection component. The listener component supplies an event handler that responds when the connection is created or terminated.
Listener is the listener object to register. Event is an event handler that is called after the connection is established or before it is terminated.