Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

The System.Machine.PowerStatus object defines the following properties.

PropertyAccess typeDescription

batteryCapacityRemaining

Read-only

Gets the remaining capacity of the computer battery in seconds.

batteryCapacityTotal

Read-only

Gets the total capacity of the computer battery in seconds.

batteryPercentRemaining

Read-only

Gets the remaining capacity of the computer battery as a percentage of total capacity.

batteryStatus

Read-only

Gets the charge state of the computer's battery.

isBatteryCharging

Read-only

Gets the battery charging status.

isPowerLineConnected

Read-only

Gets the power supply state.

 

Events

The System.Machine.PowerStatus object defines the following event.

EventDescription
powerLineStatusChanged

Event fired when the computer's power supply state changes between plugged-in and battery-powered.

 

Requirements

Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
IDLSidebar.idl
DLLSidebar.Exe version 1.0 or later

 

 

Send comments about this topic to Microsoft

Build date: 2/24/2010

Build type: SDK

Community Additions

Show:
© 2015 Microsoft