ShutdownManager.IsPowerStateSupported(PowerState) Method
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.
Gets whether a given power state is supported on a fixed-purpose device.
public:
static bool IsPowerStateSupported(PowerState powerState);
static bool IsPowerStateSupported(PowerState const& powerState);
public static bool IsPowerStateSupported(PowerState powerState);
function isPowerStateSupported(powerState)
Public Shared Function IsPowerStateSupported (powerState As PowerState) As Boolean
Parameters
- powerState
- PowerState
The power state to be examined.
Returns
bool
This method returns TRUE if the power state is supported on the specified device, and FALSE otherwise.
Windows requirements
Device family |
Windows IoT Extension SDK (introduced in 10.0.15063.0)
|
API contract |
Windows.System.SystemManagementContract (introduced in v3.0)
|
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.