Share via


MainThread.IsMainThread Property

Definition

True if the current thread is the UI thread.

public:
 static property bool IsMainThread { bool get(); };
public static bool IsMainThread { get; }
static member IsMainThread : bool
Public Shared ReadOnly Property IsMainThread As Boolean

Property Value

If main thread.

Applies to