共用方式為


ConnectionManager.StateChange Event

Definition

Occurs when the state of the connection changes. Uses System.Data.StateChangeEventHandler.

public event System.Data.StateChangeEventHandler StateChange;
member this.StateChange : System.Data.StateChangeEventHandler 
Public Custom Event StateChange As StateChangeEventHandler 

Event Type

Applies to