BlazorWebView.TryDispatchAsync(Action<IServiceProvider>) 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.
Appelle le spécifié workItem
de manière asynchrone et transmet les services étendus disponibles pour les composants Razor.
public:
virtual System::Threading::Tasks::Task<bool> ^ TryDispatchAsync(Action<IServiceProvider ^> ^ workItem);
public virtual System.Threading.Tasks.Task<bool> TryDispatchAsync (Action<IServiceProvider> workItem);
abstract member TryDispatchAsync : Action<IServiceProvider> -> System.Threading.Tasks.Task<bool>
override this.TryDispatchAsync : Action<IServiceProvider> -> System.Threading.Tasks.Task<bool>
Public Overridable Function TryDispatchAsync (workItem As Action(Of IServiceProvider)) As Task(Of Boolean)
Paramètres
- workItem
- Action<IServiceProvider>
Action à appeler.
Retours
Retourne un Task représentant true
si a workItem
été appelé ou false
s’il n’a pas été appelé, car Blazor n’est pas en cours d’exécution.
Exceptions
Levée si workItem
a la valeur null
.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour