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