Job2.SetJobState(JobState, Exception) Method

Definition

There is an internal method in Job which is not made public. In order to make this available to someone implementing a job it has to be added here. If the original method is made public it has changes of colliding with some implementation which may have added that method.

protected:
 void SetJobState(System::Management::Automation::JobState state, Exception ^ reason);
protected void SetJobState (System.Management.Automation.JobState state, Exception reason);
override this.SetJobState : System.Management.Automation.JobState * Exception -> unit
Protected Sub SetJobState (state As JobState, reason As Exception)

Parameters

state
JobState

State of the job.

reason
Exception

exception associated with the job entering this state

Applies to