FireDAC.Comp.Client.TFDCustomConnection.SetConnected

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

procedure SetConnected(AValue: Boolean); override;

C++

virtual void __fastcall SetConnected(bool AValue);

Description

Changes the value of the Connected property.

FireDAC.Comp.Client.TFDCustomConnection.SetConnected inherits from Data.DB.TCustomConnection.SetConnected. All content below this line refers to Data.DB.TCustomConnection.SetConnected.

Changes the value of the Connected property.

SetConnected is the protected write implementation of the Connected property. Most descendants of TCustomConnection do not override this method to change the implementation of Connected. Instead, they override the DoConnect and DoDisconnect methods to change the way the connection is opened and closed.

See Also