Share via


Service.ManagementStateChange Event

An event that occurs when the management state changes.

Namespace:  Microsoft.SqlServer.Management.Smo.Wmi
Assembly:  Microsoft.SqlServer.SqlWmiManagement (in Microsoft.SqlServer.SqlWmiManagement.dll)

Syntax

'Declaration
Public Event ManagementStateChange As CompletedEventHandler
'Usage
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 supports the use of events, but not the declaration of new ones.