-api-id | -api-type |
---|---|
M:Windows.System.ShutdownManager.IsPowerStateSupported(Windows.System.PowerState) |
winrt method |
Gets whether a given power state is supported on a fixed-purpose device.
The power state to be examined.
This method returns TRUE if the power state is supported on the specified device, and FALSE otherwise.
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.