Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 957 Bytes

shutdownmanager_ispowerstatesupported_922219943.md

File metadata and controls

32 lines (20 loc) · 957 Bytes
-api-id -api-type
M:Windows.System.ShutdownManager.IsPowerStateSupported(Windows.System.PowerState)
winrt method

Windows.System.ShutdownManager.IsPowerStateSupported

-description

Gets whether a given power state is supported on a fixed-purpose device.

-parameters

-param powerState

The power state to be examined.

-returns

This method returns TRUE if the power state is supported on the specified device, and FALSE otherwise.

-remarks

This API requires the use of the IoT systemManagement capability, and the inclusion of iot in the IgnorableNamespaces list. Users can add the following to their Package.appmanifest: <iot:Capability Name="systemManagement"/>, and add iot to their existing list of IgnorableNamespaces.

-see-also

-examples