DispatcherObject.Dispatcher Proprietà

Definizione

Ottiene l'oggetto Dispatcher associato a DispatcherObject.

C#
public System.Windows.Threading.Dispatcher Dispatcher { get; }

Valore della proprietà

Dispatcher

Dispatcher.

Commenti

Solo il thread in cui Dispatcher è stato creato può accedere DispatcherObject direttamente. Per accedere a un DispatcherObject oggetto da un thread diverso dal thread DispatcherObject su cui è stato creato , chiamare Invoke e BeginInvoke sull'oggetto Dispatcher DispatcherObject è associato.

Si applica a

Prodotto Versioni
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5, 6, 7