ShutdownManager.EnterPowerState 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.
Overloads
EnterPowerState(PowerState) |
Instructs a fixed-purpose device to enter the given power state. |
EnterPowerState(PowerState, TimeSpan) |
Instructs a fixed-purpose device to enter the given power state, then wake up after the given period of time. |
EnterPowerState(PowerState)
Instructs a fixed-purpose device to enter the given power state.
public:
static void EnterPowerState(PowerState powerState);
/// [Windows.Foundation.Metadata.Overload("EnterPowerState")]
static void EnterPowerState(PowerState const& powerState);
[Windows.Foundation.Metadata.Overload("EnterPowerState")]
public static void EnterPowerState(PowerState powerState);
function enterPowerState(powerState)
Public Shared Sub EnterPowerState (powerState As PowerState)
Parameters
- powerState
- PowerState
The power state to enter.
- Attributes
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.
See also
Applies to
EnterPowerState(PowerState, TimeSpan)
Instructs a fixed-purpose device to enter the given power state, then wake up after the given period of time.
public:
static void EnterPowerState(PowerState powerState, TimeSpan wakeUpAfter);
/// [Windows.Foundation.Metadata.Overload("EnterPowerStateWithTimeSpan")]
static void EnterPowerState(PowerState const& powerState, TimeSpan const& wakeUpAfter);
[Windows.Foundation.Metadata.Overload("EnterPowerStateWithTimeSpan")]
public static void EnterPowerState(PowerState powerState, System.TimeSpan wakeUpAfter);
function enterPowerState(powerState, wakeUpAfter)
Public Shared Sub EnterPowerState (powerState As PowerState, wakeUpAfter As TimeSpan)
Parameters
- powerState
- PowerState
The power state to enter.
The period of time to remain in the specified power state. After this time elapses, the device will wake up.
- Attributes
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.