Compartir a través de


Evento StateChange

The event that occurs when the instance of SQL Server changes state. 

Espacio de nombres:  Microsoft.SqlServer.Management.Common
Ensamblado:  Microsoft.SqlServer.ConnectionInfo (en Microsoft.SqlServer.ConnectionInfo.dll)

Sintaxis

'Declaración
Public Event StateChange As StateChangeEventHandler
'Uso
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 admite el uso de eventos, pero no la declaración de otros nuevos.

Comentarios

The event is handled by the specified event handler.