RAD Studio VCL Reference
TCustomConnection.UnRegisterClient Method

Removes a registered client so that it is no longer associated with the connection component.

procedure UnRegisterClient(Client: TObject); virtual;
virtual __fastcall UnRegisterClient(TObject * Client);

UnRegisterClient is used internally to remove objects from the internal list of objects that are informed when a connection is created or terminated. 

Client is the object that is removed from the list. It should be an object that was previously registered by a call to RegisterClient. If Client is a dataset, it is removed from the DataSets property list. 

Datasets call this method when they stop using the connection component. For BDE-enabled datasets, ADO datasets, and dbExpress datasets, this is when they are deactivated. For client datasets, this is when the RemoteServer property is changed. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!