Gets the properties of a job associated with a map.
This method must be called on the MCT. Use QueuedTask.Run
Public Overloads Function GetJob( _
ByVal 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.
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;
}
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.