Back to Devexpress

Session.BeforeDisconnect Event

xpo-devexpress-dot-xpo-dot-session-45e1b701.md

latest1.8 KB
Original Source

Session.BeforeDisconnect Event

Occurs before the connection to a database is detached.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public event SessionManipulationEventHandler BeforeDisconnect
vb
Public Event BeforeDisconnect As SessionManipulationEventHandler

Event Data

The BeforeDisconnect event's data class is SessionManipulationEventArgs. The following properties provide information specific to this event:

PropertyDescription
SessionGets 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.

See Also

AfterDisconnect

Disconnect()

Connect

Session Class

Session Members

DevExpress.Xpo Namespace