PowerModeChangedEventArgs Class

Definition

Provides data for the PowerModeChanged event.

public class PowerModeChangedEventArgs : EventArgs
Inheritance
PowerModeChangedEventArgs

Inherited Members

System.EventArgs

System.Object

Remarks

A 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 Mode property of a PowerModeChangedEventArgs indicates the type of power mode event that has occurred.

Constructors

PowerModeChangedEventArgs(PowerModes)

Initializes a new instance of the PowerModeChangedEventArgs class using the specified power mode event type.

Properties

Mode

Gets an identifier that indicates the type of the power mode event that has occurred.