BatteryReport Class

Definition

Provides properties that indicate the charge, capacity, and status of the battery. For more info, see Get battery information.

public ref class BatteryReport sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class BatteryReport final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class BatteryReport
Public NotInheritable Class BatteryReport
Inheritance
Object Platform::Object IInspectable BatteryReport
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

All properties in BatteryReport will return null when the battery is not present or the value is not reported by the battery controller.

Properties

ChargeRateInMilliwatts

Gets the rate that the battery is charging.

DesignCapacityInMilliwattHours

Gets the estimated energy capacity of a new battery of this type.

FullChargeCapacityInMilliwattHours

Gets the fully-charged energy capacity of the battery.

RemainingCapacityInMilliwattHours

Gets the remaining power capacity of the battery.

Status

Gets a BatteryStatus enumeration that indicates the status of the battery.

Applies to

See also