FireDAC.Comp.Client.TFDCustomManager.DeleteConnectionDef

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DeleteConnectionDef(const AName: string);

C++

void __fastcall DeleteConnectionDef(const System::UnicodeString AName);

Properties

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

Description

Deletes the connection definition.

The DeleteConnectionDef method deletes the connection definition identified by its name from the ConnectionDefs list. If the specified name is not found, an exception is raised. 

After the call, the persistent connection definition is not deleted from a file. Call SaveConnectionDefFile to delete it and save other changes into a file.

Example

FDManager.DeleteConnectionDef('myconn');

See Also

Samples