Show: Delphi C++
Display Preferences

FireDAC.Comp.Client.TFDCustomConnection.ConnectionDefName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ConnectionDefName: String read GetConnectionDefName write SetConnectionDefName stored False;

C++

__property System::UnicodeString ConnectionDefName = {read=GetConnectionDefName, write=SetConnectionDefName, stored=false};

Properties

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

Description

The name of the connection definition to use.

The ConnectionDefName property specifies the name of one of the existing connection definitions. The connection definition can be stored in ADConnectionDefs.ini or created dynamically. 

Note: Attempting to set ConnectionDefName when the Connected property is True raises an exception.

Example

FDConnection1.ConnectionDefName := 'ASA_Demo';
FDConnection1.Connected := True;

See Also

Personal tools
In Other Languages
Previous Versions
Assistance