Udostępnij za pośrednictwem


SystemInfo.BatteryLifePercent Property

Gets or sets the percentage of full battery charge remaining.

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

Syntax

'Declaration
Public Property BatteryLifePercent As Byte
'Usage
Dim instance As SystemInfo 
Dim value As Byte 

value = instance.BatteryLifePercent

instance.BatteryLifePercent = value
public byte BatteryLifePercent { get; set; }
public:
property unsigned char BatteryLifePercent {
    unsigned char get ();
    void set (unsigned char value);
}
public function get BatteryLifePercent () : byte 
public function set BatteryLifePercent (value : byte)

Property Value

Type: System.Byte
The percentage of full battery charge remaining. This member can be a value in the range 0 to 100, or 255 if status is unknown. All other values are reserved.

Remarks

BatteryLifePercent can be a value in the range 0 to 100, or 255 if status is unknown. All other values are reserved.

.NET Framework Security

See Also

Reference

SystemInfo Class

SystemInfo Members

Microsoft.SmartDevice.Connectivity Namespace