PowerSourceKind Enum

Definition

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

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.

Applies to

See also