API:Datasnap.Win.MConnect.TSharedConnection.BeforeDisconnect
Delphi
property BeforeDisconnect: TNotifyEvent read FBeforeDisconnect write FBeforeDisconnect;
C++
__property BeforeDisconnect;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| event | published | Datasnap.Win.MConnect.pas Datasnap.Win.MConnect.hpp |
Datasnap.Win.MConnect | TSharedConnection |
Description
Occurs immediately before the connection closes. {{#multireplace:Datasnap.Win.MConnect.TSharedConnection.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