共用方式為


StateChangeEventArgs(ConnectionState, ConnectionState) 建構函式

定義

在提供物件的原始狀態和目前狀態時,初始化 StateChangeEventArgs 類別的新執行個體。

public:
 StateChangeEventArgs(System::Data::ConnectionState originalState, System::Data::ConnectionState currentState);
public StateChangeEventArgs (System.Data.ConnectionState originalState, System.Data.ConnectionState currentState);
new System.Data.StateChangeEventArgs : System.Data.ConnectionState * System.Data.ConnectionState -> System.Data.StateChangeEventArgs
Public Sub New (originalState As ConnectionState, currentState As ConnectionState)

參數

originalState
ConnectionState

其中一個 ConnectionState 值。

currentState
ConnectionState

其中一個 ConnectionState 值。

適用於