Langage

Dispatcher.CurrentDispatcher Propriété

Définition

Obtient le Dispatcher thread en cours d’exécution et crée un nouveau Dispatcher si celui-ci n’est pas déjà associé au 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

Valeur de propriété

Répartiteur associé au thread actuel.

Remarques

Si un Dispatcher thread actuel n’est pas associé, un nouveau Dispatcher sera créé. Ce n’est pas le cas avec la FromThread méthode. FromThread retourne null s’il n’existe pas de répartiteur associé au thread spécifié.

S’applique à