PowerSourceKind 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.
Defines values that represent the power source of the device.
public enum class PowerSourceKind
/// [Windows.Foundation.Metadata.Version(1)]
enum class PowerSourceKind
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.System.Power.PowerNotificationsContract, 65536)]
enum class PowerSourceKind
[Windows.Foundation.Metadata.Version(1)]
public enum PowerSourceKind
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.System.Power.PowerNotificationsContract), 65536)]
public enum PowerSourceKind
var value = Microsoft.Windows.System.Power.PowerSourceKind.aC
Public Enum PowerSourceKind
- Inheritance
-
PowerSourceKind
- Attributes
Fields
Name | Value | Description |
---|---|---|
AC | 0 | The computer is powered by an AC power source (or similar, such as a laptop powered by a 12V automotive adapter). |
DC | 1 | The computer is powered by an onboard battery power source. |
Remarks
This enum corresponds to the GUID_ACDC_POWER_SOURCE power setting GUID.