API:Data.Win.ADODB.TRDSConnection.BeforeDisconnect

From RAD Studio API Documentation

Delphi

property BeforeDisconnect: TNotifyEvent read FBeforeDisconnect write FBeforeDisconnect;

C++

__property BeforeDisconnect;

Properties

Type Visibility Source Unit Parent
event published
Data.Win.ADODB.pas
Data.Win.ADODB.hpp
Data.Win.ADODB TRDSConnection

Description

Occurs immediately before the connection closes. {{#multireplace:Data.Win.ADODB.TRDSConnection.BeforeDisconnect|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:Data.DB.TCustomConnection.BeforeDisconnect|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:Data.DB.TCustomConnection.BeforeDisconnect|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

Occurs immediately before the connection closes.

Write a BeforeDisconnect event handler to take application-specific actions before dropping a connection.

See Also


Code Examples