PowerState Enum
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.
Represents power states for fixed-purpose devices.
public enum class PowerState
/// [Windows.Foundation.Metadata.ContractVersion(Windows.System.SystemManagementContract, 196608)]
enum class PowerState
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.System.SystemManagementContract), 196608)]
public enum PowerState
var value = Windows.System.PowerState.connectedStandby
Public Enum PowerState
- Inheritance
-
PowerState
- Attributes
Windows requirements
Device family |
Windows IoT Extension SDK (introduced in 10.0.15063.0)
|
API contract |
Windows.System.SystemManagementContract (introduced in v3.0)
|
Fields
Name | Value | Description |
---|---|---|
ConnectedStandby | 0 | Represents the Connected Standby state. |
SleepS3 | 1 | Represents the Sleep S3 state. |
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.