ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Workflow.Models Namespace / JobsManager Class / GetJob Method / GetJob(Map) Method
The map object to retrieve job information for.
Example

In This Topic
    GetJob(Map) Method
    In This Topic
    Gets the properties of a job associated with a map. This method must be called on the MCT. Use QueuedTask.Run
    Syntax
    public Job GetJob( 
       Map map
    )
    Public Overloads Function GetJob( _
       ByVal map As Map _
    ) As Job

    Parameters

    map
    The map object to retrieve job information for.

    Return Value

    The properties of a job associated with the map. If no job is associated with the map, then null is returned.
    Example
    How to get a job associated with a map
    // Get a job associated with the map
    var wfCon = await WorkflowModule.ConnectAsync();
    var jobManager = wfCon.GetManager<JobsManager>();
    var job = jobManager.GetJob(map);
    if (job != null)
    {
      // Job found, do something with the job
      var jobId = job.ID;
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also