Share via


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 值之一。

适用于