System.Machine.PowerStatus Object
Defines the properties and events for the computer's power status.
Members
The System.Machine.PowerStatus object defines the following members:
- Properties
- Events
Properties
The System.Machine.PowerStatus object defines the following properties.
Property | Access type | Description |
---|---|---|
Read-only | Gets the remaining capacity of the computer battery in seconds. |
|
Read-only | Gets the total capacity of the computer battery in seconds. |
|
Read-only | Gets the remaining capacity of the computer battery as a percentage of total capacity. |
|
Read-only | Gets the charge state of the computer's battery. |
|
Read-only | Gets the battery charging status. |
|
Read-only | Gets the power supply state. |
Events
The System.Machine.PowerStatus object defines the following event.
Event | Description |
---|---|
powerLineStatusChanged | Event fired when the computer's power supply state changes between plugged-in and battery-powered. |
Requirements
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
IDL | Sidebar.idl |
DLL | Sidebar.Exe version 1.0 or later |
Send comments about this topic to Microsoft
Build date: 2/24/2010
Build type: SDK