PowerSourceChanged Event

Vista Bridge Library

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

Raised when the power source changes.

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 event EventHandler PowerSourceChanged
Visual Basic (Declaration)
Public Shared Event PowerSourceChanged As EventHandler
Visual C++
public:
static  event EventHandler^ PowerSourceChanged {
	void add (EventHandler^ value);
	void remove (EventHandler^ value);
}

Exceptions

ExceptionCondition
System..::.InvalidOperationExceptionThe event handler specified for removal was not registered.
System..::.PlatformNotSupportedExceptionRequires Vista/Windows Server 2008.

See Also