PowerManager Members

Vista Bridge Library

[This is preliminary documentation and is subject to change.]

The PowerManager type exposes the following members.

Methods

  NameDescription
GetCurrentBatteryState
Gets a snapshot of the current battery state.

Properties

  NameDescription
BatteryLifePercent
Gets a value that indicates the remaining battery life (as a percentage of the full battery charge). This value is in the range 0-100, where 0 is not charged and 100 is fully charged.
IsBatteryPresent
Gets a value that indicates whether a battery is present. The battery can be a short term battery.
IsBatteryShortTerm
Gets a value that indicates whether the battery is a short term battery.
IsMonitorOn
Gets a value that indictates whether the monitor is on.
IsUpsPresent
Gets a value that indicates a UPS is present to prevent sudden loss of power.
MonitorRequired
Gets or sets a value that indicates whether the monitor is set to remain active.
PowerPersonality
Gets a value that indicates the current power scheme.
PowerSource
Gets the current power source.
RequestBlockSleep
Gets or sets a value that indicates whether the system is required to be in the working state.

Events

  NameDescription
BatteryLifePercentChanged
Raised when the remaining battery life changes.
IsMonitorOnChanged
Raised when the monitor status changes.
PowerPersonalityChanged
Raised each time the active power scheme changes.
PowerSourceChanged
Raised when the power source changes.
SystemBusyChanged
Raised when the system will not be moving into an idle state in the near future so applications should perform any tasks that would otherwise prevent the computer from entering an idle state.

See Also