Data.SqlExpr.TSQLConnection.AddConnectNotification

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Data.SqlExpr.pas
Data.SqlExpr.hpp
Unit: Data.SqlExpr
Parent: TSQLConnection

Delphi

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

C++

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

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.

See Also