Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

JobStateInfo Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Provides information about the state of a job and, if the last state change was due to an error, the reason for the job being in its current state. This class is introduced in Windows PowerShell 2.0.

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

System.Object
  System.Management.Automation.JobStateInfo

Public NotInheritable Class JobStateInfo

NameDescription
System_CAPS_pubmethodJobStateInfo(JobState)

Creates a new JobStateInfo object that contains the current status of the job. This constructor is introduced by Windows PowerShell 2.0.

System_CAPS_pubmethodJobStateInfo(JobState, Exception)

Creates a new JobStateInfo object that contains the current status of the job and the reason why the job is in that state. This constructor is introduced by Windows PowerShell 2.0.

NameDescription
System_CAPS_pubpropertyReason

Gets the reason why the job is in its current state, if an error caused the last state change. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyState

Gets the current status of the job. This property is introduced in Windows PowerShell 2.0.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

Generates a string representation of the current JobStateInfo object. This method is introduced in Windows PowerShell 2.0.(Overrides Object.ToString().)

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

Return to top
Show: