RunspaceState Enum

Definition

Defines various states of runspace.

C++
public enum class RunspaceState
Inheritance
RunspaceState

Fields

Name Value Description
BeforeOpen 0

Beginning state upon creation.

Opening 1

A runspace is being established.

Opened 2

The runspace is established and valid.

Closed 3

The runspace is closed or has not been established.

Closing 4

The runspace is being closed.

Broken 5

The runspace has been disconnected abnormally.

Disconnecting 6

The runspace is being disconnected.

Disconnected 7

The runspace is disconnected.

Connecting 8

The runspace is Connecting.

Applies to

Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0