Partager via


Événement ManagementStateChange

An event that occurs when the management state changes.

Espace de noms :  Microsoft.SqlServer.Management.Smo.Wmi
Assembly :  Microsoft.SqlServer.SqlWmiManagement (en Microsoft.SqlServer.SqlWmiManagement.dll)

Syntaxe

'Déclaration
Public Event ManagementStateChange As CompletedEventHandler
'Utilisation
Dim instance As Service
Dim handler As CompletedEventHandler

AddHandler instance.ManagementStateChange, handler
public event CompletedEventHandler ManagementStateChange
public:
 event CompletedEventHandler^ ManagementStateChange {
    void add (CompletedEventHandler^ value);
    void remove (CompletedEventHandler^ value);
}
member ManagementStateChange : IEvent<CompletedEventHandler,
    CompletedEventArgs>
JScript prend en charge l'utilisation d'événements, mais pas la déclaration de nouveaux événements.