PowerModeChangedEventArgs PowerModeChangedEventArgs PowerModeChangedEventArgs PowerModeChangedEventArgs Class


Provides data for the PowerModeChanged event.

public ref class PowerModeChangedEventArgs : EventArgs
public class PowerModeChangedEventArgs : EventArgs
type PowerModeChangedEventArgs = class
    inherit EventArgs
Public Class PowerModeChangedEventArgs
Inherits EventArgs


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.


PowerModeChangedEventArgs(PowerModes) PowerModeChangedEventArgs(PowerModes) PowerModeChangedEventArgs(PowerModes) PowerModeChangedEventArgs(PowerModes)

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


Mode Mode Mode Mode

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


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

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

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

Serves as the default hash function.

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

Gets the Type of the current instance.

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

Creates a shallow copy of the current Object.

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

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also