PowerManager.PowerSourceKind Property

Definition

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.

Applies to

See also