IsBatteryPresent Property

Vista Bridge Library

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

Gets a value that indicates whether a battery is present. The battery can be a short term battery.

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

Syntax

C#
public static bool IsBatteryPresent { get; }
Visual Basic (Declaration)
Public Shared ReadOnly Property IsBatteryPresent As Boolean
Visual C++
public:
static property bool IsBatteryPresent {
	bool get ();
}

Field Value

A Boolean value.

Exceptions

ExceptionCondition
System..::.PlatformNotSupportedExceptionRequires XP/Windows Server 2003 or higher.

See Also