Compartir a través de


JobStateInfo Constructors

Definition

Overloads

JobStateInfo(JobState)

Constructor for state changes not resulting from an error.

JobStateInfo(JobState, Exception)

Constructor for state changes with an optional error.

JobStateInfo(JobState)

Constructor for state changes not resulting from an error.

public:
 JobStateInfo(System::Management::Automation::JobState state);
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

Execution state.

Applies to

JobStateInfo(JobState, Exception)

Constructor for state changes with an optional error.

public:
 JobStateInfo(System::Management::Automation::JobState state, Exception ^ reason);
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

The new state.

reason
Exception

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

Applies to