Name

Connection.Disconnect Event — (Versions 2.0, 2.1, 2.5, 2.6)

Synopsis

Private Sub Disconnect(adStatus As ADODB.EventStatusEnum, _
                       ByVal pConnection As ADODB.Connection)

The Disconnect event is raised once a connection has ended.

Arguments

adStatus

An EventStatusEnum value indicating the status of the current operation. The adStatus parameter is always set to adStatusOK when the event is fired. Setting the adStatus parameter to adStatusUnwantedEvent before leaving the event code means that this event will not be called again.

pConnection

The Connection object that fired this event.

See Also

Connection.ConnectComplete Event, EventStatusEnum Enumeration

Get ADO: ActiveX Data Objects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.