PowerModeChangedEventArgs PowerModeChangedEventArgs PowerModeChangedEventArgs Class

Definition

Provides data for the PowerModeChanged event.

public ref class PowerModeChangedEventArgs : EventArgs
public class PowerModeChangedEventArgs : EventArgs
Public Class PowerModeChangedEventArgs
Inherits EventArgs
Inheritance
PowerModeChangedEventArgsPowerModeChangedEventArgsPowerModeChangedEventArgs

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) PowerModeChangedEventArgs(PowerModes) PowerModeChangedEventArgs(PowerModes)

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

Properties

Mode Mode Mode

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

Methods

Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See Also