FireDAC.Comp.Client.TFDLocalSQLDataSets.GetOwner
Delphi
function GetOwner: TPersistent; override;
C++
DYNAMIC System::Classes::TPersistent* __fastcall GetOwner();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp |
FireDAC.Comp.Client | TFDLocalSQLDataSets |
Description
Returns the owner of an object.
FireDAC.Comp.Client.TFDLocalSQLDataSets.GetOwner inherits from System.Classes.TPersistent.GetOwner. All content below this line refers to System.Classes.TPersistent.GetOwner.
Returns the owner of an object.
GetOwner is used by the GetNamePath method to find the owner of a persistent object. GetNamePath and GetOwner are introduced in TPersistent so descendants such as collections can appear in the Object Inspector. As implemented in TPersistent, GetOwner returns nil
(Delphi) or NULL
(C++).
For TOwnedCollection, GetOwner returns the owner of the collection. For TCollectionItem collection items, GetOwner returns the collection object into which the collection item has been inserted. For TComponent, GetOwner returns the value of the Owner property.