API:Data.SqlExpr.TSQLConnection.RegisterClient
Delphi
procedure RegisterClient(Client: TObject; Event: TConnectChangeEvent = nil); override;
C++
virtual void __fastcall RegisterClient(System::TObject* Client, Data::Db::TConnectChangeEvent Event = 0x0);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Data.SqlExpr.pas Data.SqlExpr.hpp |
Data.SqlExpr | TSQLConnection |
Description
Registers an object that uses the connection component.
Data.SqlExpr.TSQLConnection.RegisterClient inherits from Data.DB.TCustomConnection.RegisterClient. All content below this line refers to Data.DB.TCustomConnection.RegisterClient.
Registers an object that uses the connection component.
RegisterClient is used internally to associate objects with the connection component. Registered components can supply an event handler that responds when the connection is created or terminated.
Client is the object to register. If Client is a dataset, it is added to the DataSets property.
Event is an event handler that is called after the connection is established or before it is terminated.
Datasets call this method when they start using the connection component. For ADO datasets and dbExpress datasets, this is when they are activated. For client datasets, this is when the RemoteServer property is assigned.