SystemInfo.BatteryFlag Property
Gets or sets a byte that represents the charge status of the battery.
Namespace: Microsoft.SmartDevice.Connectivity
Assembly: Microsoft.SmartDevice.Connectivity (in Microsoft.SmartDevice.Connectivity.dll)
Syntax
'Declaration
Public Property BatteryFlag As Byte
'Usage
Dim instance As SystemInfo
Dim value As Byte
value = instance.BatteryFlag
instance.BatteryFlag = value
public byte BatteryFlag { get; set; }
public:
property unsigned char BatteryFlag {
unsigned char get ();
void set (unsigned char value);
}
public function get BatteryFlag () : byte
public function set BatteryFlag (value : byte)
Property Value
Type: System.Byte
Battery charge status. It can be a combination of the following values:
Value |
Description |
---|---|
1 |
High |
2 |
Low |
4 |
Critical |
8 |
Charging |
128 |
No battery |
255 |
Unknown status |
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.