IAsyncExceptionFilter.OnExceptionAsync(ExceptionContext) 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.
Appelée après qu’une action a lève un Exception.
public:
System::Threading::Tasks::Task ^ OnExceptionAsync(Microsoft::AspNetCore::Mvc::Filters::ExceptionContext ^ context);
public System.Threading.Tasks.Task OnExceptionAsync (Microsoft.AspNetCore.Mvc.Filters.ExceptionContext context);
abstract member OnExceptionAsync : Microsoft.AspNetCore.Mvc.Filters.ExceptionContext -> System.Threading.Tasks.Task
Public Function OnExceptionAsync (context As ExceptionContext) As Task
Paramètres
- context
- ExceptionContext
L’ExceptionContextopérateur
Retours
qui Task , à l’achèvement, indique que le filtre a été exécuté.
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