DevCase.Core.IO.Devices.Power Namespace

 

Classes

BatteryStatusChangedEventArgs Contains the event data for the BatteryStatusChanged event.
PowerPlan Represents a Power Plan.
PowerStateMonitor Monitors the system and battery power-state activity.

Suscribe to the events exposed by this class to be notifies about power-state changes.

PreventShutdownContext Provides a mechanism to prevent any system shutdown/restart/log-off request during the life-cycle of a instance of this class.

Applications should use this class as they begin an operation that cannot be interrupted, such as burning a CD or DVD.

This class is to be used in either a Using statement or for the life-cycle of the current application.

UtilPower Contains system powering related utilities.

Enumerations

LogOffMode Specifies the mode to logoff an user session.
ShutdownMode Specifies the mode to shutdown/restart the system.