ArcGIS Pro 3.4 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.
    Syntax
    public bool IsMainThreadRequired {get;}
    Public ReadOnly Property IsMainThreadRequired As Boolean

    Property Value

    System.Boolean
    Remarks
    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.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also