Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.