Share via


ShutdownManager Class

Definition

Manages the shutdown of devices that run in fixed-purpose mode.

public ref class ShutdownManager abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.System.SystemManagementContract, 65536)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ShutdownManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.System.SystemManagementContract), 65536)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class ShutdownManager
Public Class ShutdownManager
Inheritance
Object Platform::Object IInspectable ShutdownManager
Attributes

Windows requirements

Device family
Windows IoT Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.System.SystemManagementContract (introduced in v1.0)
App capabilities
systemManagement

Remarks

All methods of this class are static, so you do not need to get a ShutdownManager object to use the methods.

This API requires the use of the IoT systemManagement capability. Users can add the following to their Package.appmanifest: <iot:Capability Name="systemManagement"/>

Version history

Windows version SDK version Value added
1703 15063 EnterPowerState(PowerState)
1703 15063 EnterPowerState(PowerState,TimeSpan)
1703 15063 IsPowerStateSupported

Methods

BeginShutdown(ShutdownKind, TimeSpan)

Shuts down a device that runs in fixed-purpose mode, and optionally restarts the device after the specified number of seconds.

CancelShutdown()

Cancels a shutdown of a fixed-purpose device that is already in progress.

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.

IsPowerStateSupported(PowerState)

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

Applies to

See also