Megosztás a következőn keresztül:


DispatcherQueue.HasThreadAccess Property

Definition

Gets a value indicating whether the DispatcherQueue has access to the current thread.

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

Property Value

Boolean

bool

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Applies to