JobStateInfo JobStateInfo JobStateInfo Constructors

Definition

Overloads

JobStateInfo(JobState) JobStateInfo(JobState) JobStateInfo(JobState)

Constructor for state changes not resulting from an error.

JobStateInfo(JobState, Exception) JobStateInfo(JobState, Exception) JobStateInfo(JobState, Exception)

Constructor for state changes with an optional error.

JobStateInfo(JobState) JobStateInfo(JobState) JobStateInfo(JobState)

Constructor for state changes not resulting from an error.

public JobStateInfo (System.Management.Automation.JobState state);
new System.Management.Automation.JobStateInfo : System.Management.Automation.JobState -> System.Management.Automation.JobStateInfo
Public Sub New (state As JobState)
Parameters
state
JobState JobState JobState

Execution state

JobStateInfo(JobState, Exception) JobStateInfo(JobState, Exception) JobStateInfo(JobState, Exception)

Constructor for state changes with an optional error.

public JobStateInfo (System.Management.Automation.JobState state, Exception reason);
new System.Management.Automation.JobStateInfo : System.Management.Automation.JobState * Exception -> System.Management.Automation.JobStateInfo
Public Sub New (state As JobState, reason As Exception)
Parameters
state
JobState JobState JobState

The new state.

reason
Exception Exception Exception

A non-null exception if the state change was caused by an error,otherwise; null.

Applies to