PowerState Members
The following tables list the members exposed by the PowerState type.
Public Properties
Name | Description | |
---|---|---|
CurrentPowerLevel | Gets the current power level of the system. | |
MaximumTimeToActive | Gets or sets the maximum timeout value for all system sleep calls, including internal system sleep calls. | |
Uptime | Gets the time span for which the system has been up and running, without a reboot. | |
WakeupEvents | Gets or sets the default wakeup events for all Thread.Sleep calls and internal system sleep calls. |
Public Methods
Name | Description | |
---|---|---|
ChangePowerLevel | Enables the caller to adjust the current power level of the device. | |
Equals | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
RebootDevice | Overloaded. Enables the caller to force a soft or hard reboot of the device. | |
ReferenceEquals | (Inherited from Object.) | |
Sleep | Puts the device into a sleep state that is only awoken by the specified events. | |
ToString | (Inherited from Object.) | |
WaitForIdleCPU | Waits for the system to enter an idle state (no active threads). |
Protected Methods
Name | Description | |
---|---|---|
Finalize | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) |
Public Events
Name | Description | |
---|---|---|
OnPowerLevelChange | Notifies listeners when a power level event occurs. | |
OnRebootEvent | Notifies listeners prior to a device reboot (soft or hard). | |
OnSleepChange | Notifies listeners when a sleep event occurs. |