FireDAC.Comp.DataSet.TFDMasterDataLink.Destroy

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: destructor
Visibility: public
Source:
FireDAC.Comp.DataSet.pas
FireDAC.Comp.DataSet.hpp
Unit: FireDAC.Comp.DataSet
Parent: TFDMasterDataLink

Delphi

destructor Destroy; override;

C++

__fastcall virtual ~TFDMasterDataLink();

Description

Destroys an instance of TMasterDataLink.

FireDAC.Comp.DataSet.TFDMasterDataLink.Destroy inherits from Data.DB.TMasterDataLink.Destroy. All content below this line refers to Data.DB.TMasterDataLink.Destroy.

Destroys an instance of TMasterDataLink.

Applications do not free instances of TMasterDataLink. The dataset that owns the TMasterDataLink instance frees the datalink from its own destructor.

Component writers call the Free method from the destructor of the dataset that owns the TMasterDataLink object. Free checks that the TMasterDataLink reference is not already freed, and only then calls Destroy.

Destroy frees up the memory used to manage the list of field components.

See Also