ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Core Namespace / Item Class / IsMainThreadRequired Property

In This Topic
    IsMainThreadRequired Property
    In This Topic
    Returns whether the Item must be refreshed on the MCT within the lambda of a QueuedTask.Run.
    public bool IsMainThreadRequired {get;}
    Public ReadOnly Property IsMainThreadRequired As Boolean

    Property Value

    True indicates QueuedTask.Run is required for Refresh. False indicates the Item can be refreshed on any thread, including the UI, although using the ArcGIS.Core.Threading.Tasks.BackgroundTask is preferred.

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also