Expand Minimize

PSInvocationState Enumeration

Defines the states of a PowerShell pipeline. This class is introduced in Windows PowerShell 2.0.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)
'Usage
Dim instance As PSInvocationState

public enum PSInvocationState
public enum PSInvocationState
public enum PSInvocationState
Member nameDescription
CompletedThe PowerShell object has finished the invocation of the pipeline. This field is introduced in Windows PowerShell 2.0.
DisconnectedThe PowerShell object has been disconnected.
FailedThe invocation of the pipeline did not complete because an error has occurred. This field is introduced in Windows PowerShell 2.0.
NotStartedThe PowerShell object has not begun the invocation of the pipeline. This field is introduced in Windows PowerShell 2.0.
RunningThe PowerShell object is in the process of running the commands of the pipeline. This field is introduced in Windows PowerShell 2.0.
StoppedThe PowerShell object has halted the invocation of the pipeline due to a Stop request. This field is introduced in Windows PowerShell 2.0.
StoppingThe PowerShell object is in the process of halting the invocation of the pipeline. This field is introduced in Windows PowerShell 2.0.

The state of the pipeline is accessible through the following properties.


 

Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft. All rights reserved.