Dispatcher.CurrentDispatcher Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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é.