PowerManager.SystemSuspendStatusChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.