PowerState Members

The following tables list the members exposed by the PowerState type.

Public Properties

Name Description
Public Property Static CurrentPowerLevel Gets the current power level of the system.
Public Property Static MaximumTimeToActive Gets or sets the maximum timeout value for all system sleep calls, including internal system sleep calls.
Public Property Static Uptime Gets the time span for which the system has been up and running, without a reboot.
Public Property Static WakeupEvents Gets or sets the default wakeup events for all Thread.Sleep calls and internal system sleep calls.

Public Methods

Name Description
Public Method Static ChangePowerLevel Enables the caller to adjust the current power level of the device.
Public Method Equals (Inherited from Object.)
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method Static RebootDevice Overloaded. Enables the caller to force a soft or hard reboot of the device.
Public Method ReferenceEquals (Inherited from Object.)
Public Method Static Sleep Puts the device into a sleep state that is only awoken by the specified events.
Public Method ToString (Inherited from Object.)
Public Method Static WaitForIdleCPU Waits for the system to enter an idle state (no active threads).

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)

Public Events

Name Description
Public Event Static OnPowerLevelChange Notifies listeners when a power level event occurs.
Public Event Static OnRebootEvent Notifies listeners prior to a device reboot (soft or hard).
Public Event Static OnSleepChange Notifies listeners when a sleep event occurs.

See Also

Reference

PowerState Class
Microsoft.SPOT.Hardware Namespace