PSInvocationState 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.
Enumerated type defining the state of the PowerShell.
public enum class PSInvocationState
public enum PSInvocationState
type PSInvocationState =
Public Enum PSInvocationState
- Inheritance
-
PSInvocationState
Fields
Name | Value | Description |
---|---|---|
NotStarted | 0 | PowerShell has not been started. |
Running | 1 | PowerShell is executing. |
Stopping | 2 | PowerShell is stoping execution. |
Stopped | 3 | PowerShell is completed due to a stop request. |
Completed | 4 | PowerShell has completed executing a command. |
Failed | 5 | PowerShell completed abnormally due to an error. |
Disconnected | 6 | PowerShell is in disconnected state. |