PowerModeChangedEventArgs 类

定义

PowerModeChanged 事件提供数据。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
继承
PowerModeChangedEventArgs

注解

当用户挂起或恢复操作系统, 或发生系统电源状态通知时, 将引发事件。PowerModeChangedA 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.

Mode 属性PowerModeChangedEventArgs指示已发生的电源模式事件的类型。The Mode property of a PowerModeChangedEventArgs indicates the type of power mode event that has occurred.

构造函数

PowerModeChangedEventArgs(PowerModes)

使用指定的电源模式事件类型初始化 PowerModeChangedEventArgs 类的新实例。Initializes a new instance of the PowerModeChangedEventArgs class using the specified power mode event type.

属性

Mode

获取一个指示已出现的电源模式事件的类型的标识符。Gets an identifier that indicates the type of the power mode event that has occurred.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅