xpo-devexpress-dot-xpo-dot-session-9d6cbf6d.md
Occurs when a connection to a database is closed.
Namespace : DevExpress.Xpo
Assembly : DevExpress.Xpo.v25.2.dll
NuGet Package : DevExpress.Xpo
public event SessionManipulationEventHandler AfterDisconnect
Public Event AfterDisconnect As SessionManipulationEventHandler
The AfterDisconnect event's data class is SessionManipulationEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Session | Gets the session currently being processed. |
To disconnect a session from a database use the Session.Disconnect method. After the connection has been closed, the AfterDisconnect event is raised. The event parameter’s SessionManipulationEventArgs.Session property identifies the processed session.
See Also