Data.DB.TParamObject.GetInstance

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: protected
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TParamObject

Delphi

function GetInstance(ReleaseOwnership: Boolean = True): TObject;

C++

System::TObject* __fastcall GetInstance(bool ReleaseOwnership = true);

Description

Returns the TObject instance stored by the TParamObject instance.

Call GetInstance to obtain the TObject instance stored by the TParamObject instance.

If the given ReleaseOwnership parameter is set to True, then the TParamObject instance releases its ownership of the stored TObject.

The initial ownership of the stored object is set through the AInstanceOwner parameter, in a call to the Create method.

See Also