StateChange-Ereignis

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 unterstützt die Verwendung von Ereignissen, aber nicht die Deklaration neuer Ereignisse.

Hinweise

The event is handled by the specified event handler.