Share via


SystemInfo.BatteryLifetime Property

Gets or sets the number of seconds of battery life remaining, or 0xFFFFFFFF (BATTERY_LIFE_UNKNOWN) if remaining seconds are unknown.

Namespace:  Microsoft.SmartDevice.Connectivity
Assembly:  Microsoft.SmartDevice.Connectivity (in Microsoft.SmartDevice.Connectivity.dll)

Syntax

'Declaration
Public Property BatteryLifetime As Integer
'Usage
Dim instance As SystemInfo 
Dim value As Integer 

value = instance.BatteryLifetime

instance.BatteryLifetime = value
public int BatteryLifetime { get; set; }
public:
property int BatteryLifetime {
    int get ();
    void set (int value);
}
public function get BatteryLifetime () : int 
public function set BatteryLifetime (value : int)

Property Value

Type: System.Int32
The number of seconds of battery life remaining, or 0xFFFFFFFF (BATTERY_LIFE_UNKNOWN) if remaining seconds are unknown.

.NET Framework Security

See Also

Reference

SystemInfo Class

SystemInfo Members

Microsoft.SmartDevice.Connectivity Namespace