StateChangeEventArgs(ConnectionState, ConnectionState) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在给定对象的原始状态和当前状态的情况下,初始化 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 值之一。