FireDAC.Comp.Client.TFDManager.ConnectionDefFileName
Delphi
property ConnectionDefFileName: string read GetConnectionDefFileName write SetConnectionDefFileName default 0;
C++
__property ConnectionDefFileName = {default=0};
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| property | published | FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp |
FireDAC.Comp.Client | TFDManager |
Description
Gets or sets the name of a connection definition file. {{#multireplace:FireDAC.Comp.Client.TFDManager.ConnectionDefFileName|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:FireDAC.Comp.Client.TFDCustomManager.ConnectionDefFileName|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:FireDAC.Comp.Client.TFDCustomManager.ConnectionDefFileName|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.
Gets or sets the name of a connection definition file.
The ConnectionDefFileName property allows you to get or set the name of a connection definition file.
The application can set the name before the connection definitions file is loaded, for example, in the BeforeLoadConnectionDefFile event handler.
If a path is a relative one or contains template markers, it will be expanded into full path. Use ActualConnectionDefFileName to get the expanded value.
A path can include path variables.
Example
FDManager.ConnectionDefFileName := ExtractFilePath(Application.ExeName) + 'myconndef.ini';
FDManager.ConnectionDefFileAutoLoad := True;
oConn := TFDConnection.Create(nil);
oConn.ConnectionDefName := 'myconn';
oConn.Connected := True;