PowerManager.SystemSuspendStatusChanged Event

Definition

Raised when the suspend status of the device has changed.

// 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) 

Event Type

Remarks

To get the current suspend status in response to this event, use the SystemSuspendStatus property.

Applies to

See also