FireDAC.Comp.Client.TFDCustomCommand.AcquireConnection
Delphi
function AcquireConnection: TFDCustomConnection;
C++
TFDCustomConnection* __fastcall AcquireConnection();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp |
FireDAC.Comp.Client | TFDCustomCommand |
Description
Acquires the reference to the actual connection object.
The AcquireConnection method acquires the reference to the connection object, depending on the values of the Connection or ConnectionName properties and increments its usage count.
After usage, the connection object must be released by calling the ReleaseConnection method. The command object is automatically connected when calling Prepare. The connection is terminated when Unprepare is called.