ArcGIS Pro 2.6 API Reference Guide
OnWorker Property (QueuedWorker)

ArcGIS.Core.Hosting.Threading.Tasks Namespace > QueuedWorker Class : OnWorker Property
Returns True if called from the worker thread.
Syntax
public static bool OnWorker {get;}
Public Shared ReadOnly Property OnWorker As Boolean
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

QueuedWorker Class
QueuedWorker Members