共用方式為


SqlConnection.StateChange 事件

定義

當連線的狀態變更時發生。

public:
 event System::Data::StateChangeEventHandler ^ StateChange;
[System.Data.DataSysDescription("DbConnection_StateChange")]
public event System.Data.StateChangeEventHandler StateChange;
[<System.Data.DataSysDescription("DbConnection_StateChange")>]
member this.StateChange : System.Data.StateChangeEventHandler 
Public Custom Event StateChange As StateChangeEventHandler 

事件類型

屬性

適用於