Share via


PowerManager.SystemSuspendStatusChanged Evento

Definizione

Generato quando lo stato di sospensione del dispositivo è cambiato.

// Register
static event_token SystemSuspendStatusChanged(EventHandler<IInspectable> const& handler) const;

// Revoke with event_token
static void SystemSuspendStatusChanged(event_token const* cookie) const;

// Revoke with event_revoker
static PowerManager::SystemSuspendStatusChanged_revoker SystemSuspendStatusChanged(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> SystemSuspendStatusChanged;
function onSystemSuspendStatusChanged(eventArgs) { /* Your code */ }
Microsoft.Windows.System.Power.PowerManager.addEventListener("systemsuspendstatuschanged", onSystemSuspendStatusChanged);
Microsoft.Windows.System.Power.PowerManager.removeEventListener("systemsuspendstatuschanged", onSystemSuspendStatusChanged);
- or -
Microsoft.Windows.System.Power.PowerManager.onsystemsuspendstatuschanged = onSystemSuspendStatusChanged;
Public Shared Custom Event SystemSuspendStatusChanged As EventHandler(Of Object) 

Tipo evento

Commenti

Per ottenere lo stato di sospensione corrente in risposta a questo evento, utilizzare la proprietà SystemSuspendStatus .

Si applica a

Vedi anche