Data.DB.TDataLink.Destroy
Delphi
destructor Destroy; override;
C++
__fastcall virtual ~TDataLink();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
destructor | public | Data.DB.pas Data.DB.hpp |
Data.DB | TDataLink |
Description
Destroys an instance of TDataLink.
The TDataLink object should be destroyed in the destructor of its Owner, where that Owner calls Create from its constructor.
Do not call Destroy directly in an application. Instead, call the Free method. Free checks that the TDataLink reference is not nil and only then calls Destroy.
Before calling the inherited destructor, Destroy removes any reference to the TDataLink from the data source object.