DeviceStatus.PowerSource Property

July 28, 2014

Indicates whether the device is currently running on battery power or is plugged in to an external power supply.

Namespace:  Microsoft.Phone.Info
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public static PowerSource PowerSource { get; }

Property Value

Type: Microsoft.Phone.Info.PowerSource
Returns PowerSource.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

© 2014 Microsoft