.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
A newer version of this page is available. Switch to the current version.

Session.BeforeConnect Event

Occurs before the connection to a database is established.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

public event SessionManipulationEventHandler BeforeConnect
Public Event BeforeConnect As SessionManipulationEventHandler

Event Data

The BeforeConnect 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

The session is connected to a database via the Session.Connect method. As a result the BeforeConnect event is raised. The event parameter's SessionManipulationEventArgs.Session property identifies the processed session.

After the connection has been established, the Session.AfterConnect event is raised.

See Also