PowerBroadcastStatus Enumeration

Indicates the system's power status.

Namespace:  System.ServiceProcess
Assembly:  System.ServiceProcess (in System.ServiceProcess.dll)

public enum PowerBroadcastStatus

Member nameDescription
BatteryLowBattery power is low.
OemEventAn Advanced Power Management (APM) BIOS signaled an APM OEM event.
PowerStatusChangeA change in the power status of the computer is detected, such as a switch from battery power to A/C. The system also broadcasts this event when remaining battery power slips below the threshold specified by the user or if the battery power changes by a specified percentage.
QuerySuspendThe system has requested permission to suspend the computer. An application that grants permission should carry out preparations for the suspension before returning.
QuerySuspendFailedThe system was denied permission to suspend the computer. This status is broadcast if any application or driver denied a previous QuerySuspend status.
ResumeAutomaticThe computer has woken up automatically to handle an event.
NoteNote

If the system detects any user activity after broadcasting ResumeAutomatic, it will broadcast a ResumeSuspend event to let applications know they can resume full interaction with the user.

ResumeCriticalThe system has resumed operation after a critical suspension caused by a failing battery.
NoteNote

Because a critical suspension occurs without prior notification, resources and data previously available may not be present when the application receives this event. The application should attempt to restore its state to the best of its ability.

ResumeSuspendThe system has resumed operation after being suspended.
SuspendThe computer is about to enter a suspended state. This event is typically broadcast when all applications and installable drivers have returned true to a previous QuerySuspend state.

PowerBroadcastStatus is used by the ServiceBase class to indicate a change in the system's power status. You can design your application to react to any power status change.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft