Back to Devexpress

Session.BeforeConnect Event

xpo-devexpress-dot-xpo-dot-session-a1664ece.md

latest1.8 KB
Original Source

Session.BeforeConnect Event

Occurs before the connection to a database is established.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public event SessionManipulationEventHandler BeforeConnect
vb
Public Event BeforeConnect As SessionManipulationEventHandler

Event Data

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

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

AfterConnect

Connect

Disconnect()

Session Class

Session Members

DevExpress.Xpo Namespace