PowerAction Enum

Definition

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.

Applies to