Job2.SetJobState(JobState, Exception) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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