ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Workflow.Models Namespace / JobsManager Class / CloseJobs Method
The IDs of the jobs to close
Example

In This Topic
    CloseJobs Method
    In This Topic
    Closes selected jobs. This method must be called on the MCT. Use QueuedTask.Run
    Syntax

    Parameters

    jobIDs
    The IDs of the jobs to close

    Return Value

    int array of jobs that couldn't be closed
    Example
    How to close a job
    // CloseJobs returns a list of closed job IDs
    // it is passed a list of job IDs to close
    var wfCon = await WorkflowModule.ConnectAsync();
    var jobManager = wfCon.GetManager<JobsManager>();
    var jobIDs = jobManager.CloseJobs(jobIdsToClose);
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also