CoreDispatcher.TryRunAsync(CoreDispatcherPriority, DispatchedHandler) Méthode
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.
Tente de planifier le rappel spécifié sur le thread d’interface utilisateur à partir d’un thread de travail et retourne les résultats de manière asynchrone.
public:
virtual IAsyncOperation<bool> ^ TryRunAsync(CoreDispatcherPriority priority, DispatchedHandler ^ agileCallback) = TryRunAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryRunAsync(CoreDispatcherPriority const& priority, DispatchedHandler const& agileCallback);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryRunAsync(CoreDispatcherPriority priority, DispatchedHandler agileCallback);
function tryRunAsync(priority, agileCallback)
Public Function TryRunAsync (priority As CoreDispatcherPriority, agileCallback As DispatchedHandler) As IAsyncOperation(Of Boolean)
Paramètres
- priority
- CoreDispatcherPriority
Spécifie la priorité pour la répartition des événements. Définissez cette valeur sur CoreDispatcherPriority.Normal.
- agileCallback
- DispatchedHandler
Rappel sur lequel le répartiteur retourne lorsque l’événement est distribué.
Retours
Opération asynchrone.
- Attributs
Remarques
Si elle est appelée pendant l’arrêt du CoreDispatcher, cette méthode se termine correctement et retourne false.
S’applique à
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de l’année 2024, nous abandonnerons progressivement le mécanisme de retour d’information GitHub Issues pour le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultez :Soumettre et afficher des commentaires pour