ShutdownManager.IsPowerStateSupported(PowerState) Method

Definition

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

Boolean

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.

Applies to