Dispatcher.CurrentDispatcher Proprietà

Definizione

Ottiene l'oggetto Dispatcher per il thread attualmente in esecuzione e crea un nuovo Dispatcher oggetto se non è già associato al thread.

public:
 static property System::Windows::Threading::Dispatcher ^ CurrentDispatcher { System::Windows::Threading::Dispatcher ^ get(); };
public static System.Windows.Threading.Dispatcher CurrentDispatcher { get; }
static member CurrentDispatcher : System.Windows.Threading.Dispatcher
Public Shared ReadOnly Property CurrentDispatcher As Dispatcher

Valore della proprietà

Dispatcher associato al thread corrente.

Commenti

Se un oggetto Dispatcher non è associato al thread corrente, verrà creato un nuovo Dispatcher oggetto . Questo non è il caso del FromThread metodo . FromThread restituisce null se non è presente un dispatcher associato al thread specificato.

Si applica a