Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

RunspaceState Enum

Definition

Namespace:
System.Management.Automation.Runspaces
Assembly:
System.Management.Automation.dll
Package:
Microsoft.PowerShell.5.1.ReferenceAssemblies v1.0.0
Package:
System.Management.Automation v7.4.15
Package:
System.Management.Automation v7.5.6
Package:
System.Management.Automation v7.6.1

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 various states of runspace.

public enum class RunspaceState
public enum RunspaceState
type RunspaceState = 
Public Enum 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