Occurs before the connection to a database is established.
public event SessionManipulationEventHandler BeforeConnect
Public Event BeforeConnect As SessionManipulationEventHandler
The BeforeConnect event handler receives an argument of the SessionManipulationEventArgs type.
The following properties provide information specific to this event.
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.