FireDAC.Comp.Client.TFDCustomManager.DeleteConnectionDef

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
Unit: FireDAC.Comp.Client
Parent: TFDCustomManager

Delphi

procedure DeleteConnectionDef(const AName: string);

C++

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

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