Dispatcher.CurrentDispatcher Proprietà

Definizione

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

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 Dispatcher oggetto non è associato al thread corrente, verrà creato un nuovo Dispatcher oggetto . Non è il caso del metodo FromThread. FromThread restituisce null se non è presente un dispatcher associato al thread specificato.

Si applica a