Battery.ChargeLevel 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 charge level of the device from 0.0 to 1.0.
public:
static property double ChargeLevel { double get(); };
public static double ChargeLevel { get; }
static member ChargeLevel : double
Public Shared ReadOnly Property ChargeLevel As Double
Property Value
Level of charge. Returns -1 if no battery exists.
Remarks
Returns -1 if no battery exists.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.