Occurs when the user suspends or resumes the system.
[Visual Basic] Public Shared Event PowerModeChanged As _ PowerModeChangedEventHandler [C#] public static event PowerModeChangedEventHandler PowerModeChanged; [C++] public: static __event PowerModeChangedEventHandler* PowerModeChanged;
[JScript] In JScript, you can handle the events defined by a class, but you cannot define your own.
The event handler receives an argument of type PowerModeChangedEventArgs containing data related to this event. The following PowerModeChangedEventArgs property provides information specific to this event.
| Property | Description |
|---|---|
| Mode | Gets the power mode. |
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
SystemEvents Class | SystemEvents Members | Microsoft.Win32 Namespace | PowerModeChangedEventArgs | PowerModeChangedEventHandler | PowerModes