Session.BeforeDisconnect Event
Occurs before the connection to a database is detached.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.1.dll
NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap, DevExpress.Xpo
NuGet Package: DevExpress.Xpo
Declaration
Event Data
The BeforeDisconnect event's data class is SessionManipulationEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Session | Gets the session currently being processed. |
Remarks
A session is disconnected from a database via the Session.Disconnect method. As a result the BeforeDisconnect event is raised. The event parameter’s SessionManipulationEventArgs.Session property identifies the processed session.
After the connection has been detached the Session.AfterDisconnect event is raised.