Lingua

DispatcherQueueController.CreateOnDedicatedThread Metodo

Definizione

Crea un dispatcherQueue che è possibile usare per eseguire attività in un thread dedicato.

public:
 static DispatcherQueueController ^ CreateOnDedicatedThread();
 static DispatcherQueueController CreateOnDedicatedThread();
public static DispatcherQueueController CreateOnDedicatedThread();
function createOnDedicatedThread()
Public Shared Function CreateOnDedicatedThread () As DispatcherQueueController

Valori restituiti

DispatcherQueue che è possibile usare per eseguire attività in un thread dedicato.

Commenti

Questo metodo crea un thread e associa un dispatcherQueue a tale thread. Viene creato un oggetto DispatcherQueue e associato al thread corrente. È possibile accedere a DispatcherQueue creato tramite DispatcherQueueController.DispatcherQueue.

DispatcherQueue creato continua l'esecuzione nel thread dedicato fino all'arresto esplicito. Per evitare perdite di thread e memoria, al termine della chiamata di DispatcherQueue DispatcherQueueController.ShutdownQueue o DispatcherQueueController.ShutdownQueueAsync.

Si applica a