DispatcherQueue.HasThreadAccess 属性

定义

获取一个值,该值指示 DispatcherQueue 是否有权访问当前线程。

public:
 property bool HasThreadAccess { bool get(); };
bool HasThreadAccess();
public bool HasThreadAccess { get; }
var boolean = dispatcherQueue.hasThreadAccess;
Public ReadOnly Property HasThreadAccess As Boolean

属性值

Boolean

bool

适用于