FireDAC.Comp.Client.TFDCustomConnection.ConnectionDefName

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: public
Source:
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
Unit: FireDAC.Comp.Client
Parent: TFDCustomConnection

Delphi

property ConnectionDefName: String read GetConnectionDefName write SetConnectionDefName stored False;

C++

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

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