PowerAction Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the computer power action.
public enum PowerAction
type PowerAction =
Public Enum PowerAction
- Inheritance
-
PowerAction
Fields
Name | Value | Description |
---|---|---|
Nothing | 0 | No action. |
Sleep | 1 | Indicates that the computer is to be in standby state. |
Hibernate | 2 | Indicates that the computer is to hibernate. |
Shutdown | 3 | Indicates that the computer is to shut down but leave the system power on. |
Reboot | 4 | Indicates that the computer is to reboot. |
ShutdownOff | 5 | Indicates that the computer is to shut down and power off. |