Dispatcher.FromThread(Thread) Metodo

Definizione

Ottiene Dispatcher per il thread specificato.

public:
 static System::Windows::Threading::Dispatcher ^ FromThread(System::Threading::Thread ^ thread);
public static System.Windows.Threading.Dispatcher FromThread (System.Threading.Thread thread);
static member FromThread : System.Threading.Thread -> System.Windows.Threading.Dispatcher
Public Shared Function FromThread (thread As Thread) As Dispatcher

Parametri

thread
Thread

Thread dal quale ottenere Dispatcher.

Restituisce

Dispatcher

Dispatcher per thread.

Commenti

Se un dispatcher non è disponibile per il thread specificato, null verrà restituito.

FromThread non crea un oggetto Dispatcher in un thread che non dispone di un oggetto Dispatcher. Viene creato un nuovo Dispatcher oggetto in un thread che non dispone già di un oggetto Dispatcher quando si tenta di ottenere Dispatcher utilizzando la CurrentDispatcher proprietà .

Si applica a