Show: Delphi C++
Display Preferences

FireDAC.Comp.Client.TFDCustomManager.ConnectionDefFileName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ConnectionDefFileName: String read GetConnectionDefFileName  write SetConnectionDefFileName;

C++

__property System::UnicodeString ConnectionDefFileName = {read=GetConnectionDefFileName, write=SetConnectionDefFileName};

Properties

Type Visibility Source Unit Parent
property public
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDCustomManager

Description

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;

See Also

Personal tools
In Other Languages
Previous Versions
Assistance