StateChange Event
Syntax:
public event StateChangeEventHandler StateChange
Description:
Type: System.Data.StateChangeEventHandler
The StateChange
event occurs when the state of connection changes from Closed to Opened or Opened to Closed.
Reference:
For more information, reference MSDN documentation for: System.Data.Common.DbConnection.StateChange