Battery.RemainingDischargeTime property

Gets a value that estimates how long is left until the phone's battery is fully discharged. Each unit value represents 100 nanoseconds.

Syntax


public TimeSpan RemainingDischargeTime { get; }

Property value

Type: System.TimeSpan [.NET] | Windows::Foundation::TimeSpan [C++]

A value that estimates how long is left until the phone's battery is fully discharged. Each unit value represents 100 nanoseconds.

Remarks

Divide by 10^7 to get the total number of seconds.

Requirements (device family)

Device family

Mobile

API contract

Windows.Phone.PhoneContract, introduced version 1.0

Namespace

Windows.Phone.Devices.Power
Windows::Phone::Devices::Power [C++]

Metadata

Windows.Phone.PhoneContract.winmd

Requirements (operating system)

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8

Namespace

Windows.Phone.Devices.Power
Windows::Phone::Devices::Power [C++]

Metadata

Windows.WinMD

See also

Battery

 

 

Community Additions

ADD
Show:
© 2015 Microsoft