The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

Session.BeforeDisconnect Event

Occurs before the connection to a database is detached.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

public event SessionManipulationEventHandler BeforeDisconnect
Public Event BeforeDisconnect As SessionManipulationEventHandler
public event SessionManipulationEventHandler BeforeDisconnect
Public Event BeforeDisconnect As SessionManipulationEventHandler

Event Data

The BeforeDisconnect event handler receives an argument of the SessionManipulationEventArgs type. 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.

See Also