ConnectionManager.StateChange Event
The event that occurs when the instance of SQL Server changes state.
Namespace: Microsoft.SqlServer.Management.Common
Assembly: Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)
Syntax
'Declaration
Public Event StateChange As StateChangeEventHandler
'Usage
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 supports the use of events, but not the declaration of new ones.
Remarks
The event is handled by the specified event handler.