DispatcherQueueController.CreateOnDedicatedThread 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 DispatcherQueue that you can use to run tasks on a dedicated thread.
public:
static DispatcherQueueController ^ CreateOnDedicatedThread();
static DispatcherQueueController CreateOnDedicatedThread();
public static DispatcherQueueController CreateOnDedicatedThread();
function createOnDedicatedThread()
Public Shared Function CreateOnDedicatedThread () As DispatcherQueueController
Returns
The created DispatcherQueueController.
Remarks
You can access the created DispatcherQueue via DispatcherQueueController.DispatcherQueue.
The created DispatcherQueue continues running on its dedicated thread until explicitly shut down. To avoid thread and memory leaks, call DispatcherQueueController.ShutdownQueueAsync when you are finished with the DispatcherQueue.