ConnectionManager.StateChange 事件
The event that occurs when the instance of SQL Server changes state.
命名空間: Microsoft.SqlServer.Management.Common
組件: Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)
語法
'宣告
Public Event StateChange As StateChangeEventHandler
'用途
Dim instance As ConnectionManager
Dim handler As StateChangeEventHandler
AddHandler instance.StateChange, handler
public event StateChangeEventHandler StateChange
public:
event StateChangeEventHandler^ StateChange {
void add (StateChangeEventHandler^ value);
void remove (StateChangeEventHandler^ value);
}
member StateChange : IEvent<StateChangeEventHandler,
StateChangeEventArgs>
JScript 支援事件的使用,但不支援新事件的宣告。
備註
The event is handled by the specified event handler.