FireDAC.Comp.Client.TFDCustomManager.RefreshConnectionDefFile

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 RefreshConnectionDefFile;

C++

void __fastcall RefreshConnectionDefFile();

Description

Refreshes the list with the connection definitions.

The RefreshConnectionDefFile method discards all changes in the ConnectionDefs list and loads the file with the connection definitions.

The list is completely refreshed, if there is no active connection using the definitions from this list. Otherwise, for:

  • New connection definition--new definition appears in the list.
  • Modified connection definition-- changed definition appears in the list, if there is no active pooled connection associated with this definition.
  • Deleted connection definition--deleted definition is excluded from the list, if there is no active connection associated with this definition.

Note: You need to restart the RAD Studio IDE for changes to take effect.

Example

FDManager1.RefreshConnectionDefFile;
FDManager1.GetConnectionDefNames(Memo1.Lines);

See Also