ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Desktop.Workflow.Client.Models Namespace / INotificationManager Interface / UnsubscribeFromJobs Method
The ids of the jobs to subscribe to
Example

In This Topic
    UnsubscribeFromJobs Method
    In This Topic
    Unsubscribe to messages for the given jobs
    Syntax
    void UnsubscribeFromJobs( 
       List<string> jobIds
    )
    Sub UnsubscribeFromJobs( _
       ByVal jobIds As List(Of String) _
    ) 

    Parameters

    jobIds
    The ids of the jobs to subscribe to
    Example
    QueuedTask.Run(() => { var jobIds = new List() { "123456789", "234567890" }; // When unsubscribing from jobs, use the same instance of NotificationManager used to subscribe to jobs. notifMgr.SubscribeToJobs(jobIds); });
    Unsubscribe to messages for the given jobs
    // Unsubscribe from the job message event using the subscription token
    JobMessageEvent.Unsubscribe(subscriptionToken);
    
    // Unsubscribe from jobs using the same instance of Notification Manager used to subscribe to jobs.
    // This will remove the jobs from the subscribed job list if no other clients are subscribed to those jobs.
    var notifManager = WorkflowClientModule.NotificationManager;
    notifManager.UnsubscribeFromJobs(jobIds);
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also