DispatcherUnhandledExceptionEventHandler Délégué
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.
Représente la méthode qui gérera l'événement UnhandledException.
public delegate void DispatcherUnhandledExceptionEventHandler(System::Object ^ sender, DispatcherUnhandledExceptionEventArgs ^ e);
public delegate void DispatcherUnhandledExceptionEventHandler(object sender, DispatcherUnhandledExceptionEventArgs e);
type DispatcherUnhandledExceptionEventHandler = delegate of obj * DispatcherUnhandledExceptionEventArgs -> unit
Public Delegate Sub DispatcherUnhandledExceptionEventHandler(sender As Object, e As DispatcherUnhandledExceptionEventArgs)
Paramètres
- sender
- Object
Source de l'événement.
Données d'événement.
Remarques
L’événement UnhandledException se produit lorsque le code qui s’exécute au moyen du Dispatcher lève une exception qui n’est pas gérée.
L’événement UnhandledExceptionFilter fournit un moyen de ne pas déclencher l’événement UnhandledException . L’événement UnhandledExceptionFilter est déclenché en premier, et si RequestCatch sur le DispatcherUnhandledExceptionFilterEventArgs est défini sur false
, l’événement UnhandledException ne sera pas déclenché.
Méthodes d’extension
GetMethodInfo(Delegate) |
Obtient un objet qui représente la méthode représentée par le délégué spécifié. |
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