Windows Dev Center

Expand Minimize

JobState Enumeration

Defines the state of the job, such as has the job started, is it running, or has it been stopped. 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 JobState

public enum JobState
public enum JobState
public enum JobState

Member nameDescription
AtBreakpointScript execution is halted in a debugger stop.This element is introduced in Windows PowerShell 5.0.
BlockedThe job is blocked, such as waiting for user input, from running the commands of the pipeline in one or more runspaces. This field is introduced in Windows PowerShell 2.0.
CompletedThe job has successfully run the commands of the pipeline in all runspaces. This field is introduced in Windows PowerShell 2.0.
DisconnectedThe job is a remote job and has been disconnected from the server. Introduced in Windows PowerShell 3.0.
FailedThe job was not successfully able to run the commands of the pipeline. This field is introduced in Windows PowerShell 2.0.
NotStartedThe job has not begun to run the commands of the pipeline. This field is introduced in Windows PowerShell 2.0.
RunningThe job is in the process of running the commands of the pipeline. This field is introduced in Windows PowerShell 2.0.
StoppedThe job has been canceled on one or more runspaces. This field is introduced in Windows PowerShell 2.0.
StoppingThe job is in the process of stopping the running of the commands of the pipeline. Introduced in Windows PowerShell 3.0.
SuspendedThe job has suspended the running of the commands of the pipeline. Introduced in Windows PowerShell 3.0.
SuspendingThe job is in the process of suspending the running of the commands of the pipeline. Introduced in Windows PowerShell 3.0.

 

Target Platforms


Show:
© 2015 Microsoft