共用方式為


StateChangeEventArgs.CurrentState 屬性

定義

取得連線的新狀態。 當引發事件時,連接物件將會處於新的狀態中。

public:
 property System::Data::ConnectionState CurrentState { System::Data::ConnectionState get(); };
public System.Data.ConnectionState CurrentState { get; }
member this.CurrentState : System.Data.ConnectionState
Public ReadOnly Property CurrentState As ConnectionState

屬性值

其中一個 ConnectionState 值。

適用於