DispatcherObject.Dispatcher Propriété

Définition

Obtient le Dispatcher associé à DispatcherObject.

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

Valeur de propriété

Dispatcher

Répartiteur.

Remarques

Seul le thread sur lequel l’utilisateur Dispatcher a été créé peut accéder DispatcherObject directement. Pour accéder à un DispatcherObject thread autre que le thread sur lequel il DispatcherObject a été créé, appelez Invoke et BeginInvoke sur le Dispatcher thread DispatcherObject associé.

S’applique à

Produit Versions
.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