ArcGIS Pro 2.8 API Reference Guide
IsMainThreadRequired Property

ArcGIS.Desktop.Core Namespace > Item Class : IsMainThreadRequired Property
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 10, Windows 8.1

See Also

Reference

Item Class
Item Members