Événement ConnectionManager.StateChange
The event that occurs when the instance of SQL Server changes state.
Espace de noms : Microsoft.SqlServer.Management.Common
Assembly : Microsoft.SqlServer.ConnectionInfo (en Microsoft.SqlServer.ConnectionInfo.dll)
Syntaxe
'Déclaration
Public Event StateChange As StateChangeEventHandler
'Utilisation
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 prend en charge l'utilisation d'événements, mais pas la déclaration de nouveaux événements.
Notes
The event is handled by the specified event handler.