PowerSource Enumeration

Vista Bridge Library

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

Specifies the power source currently supplying power to the system.

Namespace:  Microsoft.SDK.Samples.VistaBridge.Library.PowerManagement
Assembly:  VistaBridgeLibrary (in VistaBridgeLibrary.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

C#
public enum PowerSource
Visual Basic (Declaration)
Public Enumeration PowerSource
Visual C++
public enum class PowerSource

Members

Member nameDescription
AC
The computer is powered by an AC power source or a similar device, such as a laptop powered by a 12V automotive adapter.
Battery
The computer is powered by a built-in battery. A battery has a limited amount of power; applications should conserve resources where possible.
Ups
The computer is powered by a short-term power source such as a UPS device.

Remarks

Application should be aware of the power source because some power sources provide a finite power supply. An application might take steps to conserve power while the system is using such a source.

See Also