Microsoft.Win32.PowerModeChangedEventArgs Class

Provides data for the SystemEvents.PowerModeChanged event.

See Also: PowerModeChangedEventArgs Members


public class PowerModeChangedEventArgs : EventArgs


A SystemEvents.PowerModeChanged event is raised when the user suspends or resumes the operating system, or when a system power status notification occurs. A system power status notification can occur when a weak or charging power source is detected, or when a transition from AC or battery power source occurs.

The PowerModeChangedEventArgs.Mode property of a Microsoft.Win32.PowerModeChangedEventArgs indicates the type of power mode event that has occurred.


Namespace: Microsoft.Win32
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0,,