WorkflowJobSourceAdapter.GetJobsByState(JobState, Boolean) 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.
Get list of jobs that are in the specified state
public:
override System::Collections::Generic::IList<System::Management::Automation::Job2 ^> ^ GetJobsByState(System::Management::Automation::JobState state, bool recurse);
public override System.Collections.Generic.IList<System.Management.Automation.Job2> GetJobsByState (System.Management.Automation.JobState state, bool recurse);
override this.GetJobsByState : System.Management.Automation.JobState * bool -> System.Collections.Generic.IList<System.Management.Automation.Job2>
Public Overrides Function GetJobsByState (state As JobState, recurse As Boolean) As IList(Of Job2)
Parameters
- state
- JobState
state to match
- recurse
- Boolean
Returns
collection of jobs with the specified state