PowerSource Property

Vista Bridge Library

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

Gets the current power source.

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 PowerSource PowerSource { get; }
Visual Basic (Declaration)
Public Shared ReadOnly Property PowerSource As PowerSource
Visual C++
public:
static property PowerSource PowerSource {
	PowerSource get ();
}

Field Value

A PowerSource value.

Exceptions

ExceptionCondition
System..::.PlatformNotSupportedExceptionRequires Vista/Windows Server 2008.

See Also