MainThread.IsMainThread 属性

定义

如此 如果当前线程是 UI 线程。

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

属性值

如果main线程。

适用于