SystemButtonEventController.CreateForDispatcherQueue(DispatcherQueue) Method
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.
Creates a SystemButtonEventController object on the specified dispatcher queue.
All events are fired on the queue thread.
public:
static SystemButtonEventController ^ CreateForDispatcherQueue(DispatcherQueue ^ queue);
static SystemButtonEventController CreateForDispatcherQueue(DispatcherQueue const& queue);
public static SystemButtonEventController CreateForDispatcherQueue(DispatcherQueue queue);
function createForDispatcherQueue(queue)
Public Shared Function CreateForDispatcherQueue (queue As DispatcherQueue) As SystemButtonEventController
Parameters
- queue
- DispatcherQueue
The DispatcherQueue for managing prioritized tasks that execute in a serial fashion on a thread.
Returns
A SystemButtonEventController.
Remarks
This API is intended for use by Accessibility tools as a low level hook for intercepting events from hardware system buttons.
SystemButtonEventController event registration applies system wide and is first-come, first-served. If an application or service sets a SystemButtonEventController event Handled property to true, applications or services that registered after that app or service for the same event notification will not receive the notification.