Skip to content

TCustomConnection.BeforeConnect

Event triggered before a connection is made.

Declaration

Source position: db.pas line 2438

published property BeforeConnect: TNotifyEvent;

Description

BeforeConnect is called before a connection is attempted in TCustomConnection.Open. It can be used to set connection parameters, or to abort the establishing of the connection: if an exception is raised during this event, the connection attempt is aborted.

See also

Name Description
TCustomConnection.Open Makes the connection to the server.
TCustomConnection.AfterConnect Event triggered after a connection is made.
TCustomConnection.OnLogin Event triggered when a login prompt is shown.