DeviceStatus.PowerSource Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
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)
Syntax
Public Shared ReadOnly Property PowerSource As PowerSource
public static PowerSource PowerSource { get; }
Property Value
Type: Microsoft.Phone.Info..::.PowerSource
Returns PowerSource.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1
Platforms
Windows Phone
See Also
Reference
Microsoft.Phone.Info Namespace