Condividi tramite


Evento StateChange

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

Spazio dei nomi  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

Sintassi

'Dichiarazione
Public Event StateChange As StateChangeEventHandler
'Utilizzo
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 supporta l'utilizzo di eventi, ma non la dichiarazione di nuovi eventi.

Osservazioni

The event is handled by the specified event handler.