Επεξεργασία

Κοινή χρήση μέσω


PowerModeChangedEventArgs Class

Definition

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
Inheritance
PowerModeChangedEventArgs

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.

Methods

Equals(Object)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also