ArcGIS Pro 3.0 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, Windows 8.1

    See Also