Export (0) Print
Expand All

Job.SetJobState Method

Sets the status of the job, such as is it running, has it completed, or has it failed. This method is introduced in Windows PowerShell 2.0.

Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)

Dim state As JobState


protected void SetJobState (
	JobState state
protected void SetJobState (
	JobState state
protected function SetJobState (
	state : JobState



A PSJobState constant that identifies the status of the job.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
© 2014 Microsoft