CoreIndependentInputSource.DispatcherQueue Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the DispatcherQueue associated with this CoreIndependentInputSource.
public:
property DispatcherQueue ^ DispatcherQueue { DispatcherQueue ^ get(); };
DispatcherQueue DispatcherQueue();
public DispatcherQueue DispatcherQueue { get; }
var dispatcherQueue = coreIndependentInputSource.dispatcherQueue;
Public ReadOnly Property DispatcherQueue As DispatcherQueue
Property Value
The DispatcherQueue for managing prioritized tasks that execute in a serial fashion on a thread.
Implements
Windows requirements
Device family |
Windows 10, version 1803 (introduced in 10.0.17134.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v6.0)
|
Remarks
Some platform objects require thread affinity for posting events back to the thread where the object was instantiated. The DispatcherQueue lets you post work to this thread.
These platform objects can be created on the UI thread, where the DispatcherQueue already exists, or they can be created on a long running, non-UI thread with a DispatcherQueue created with the DispatcherQueueController.CreateOnDedicatedThread method.