PowerManager.PowerSourceKind Property
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.
Gets the current power source of the device.
public:
static property PowerSourceKind PowerSourceKind { PowerSourceKind get(); };
static PowerSourceKind PowerSourceKind();
public static PowerSourceKind PowerSourceKind { get; }
var powerSourceKind = PowerManager.powerSourceKind;
Public Shared ReadOnly Property PowerSourceKind As PowerSourceKind
Property Value
The current power source of the device.
Remarks
This property corresponds to the GUID_ACDC_POWER_SOURCE power setting GUID.