UnhandledExceptionHandler Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Delegate for possibly handling an exception in the application.
public delegate bool UnhandledExceptionHandler(System::Object ^ sender, Exception ^ ex);
public delegate bool UnhandledExceptionHandler(object sender, Exception ex);
Public Delegate Function UnhandledExceptionHandler(sender As Object, ex As Exception) As Boolean
Parameters
- sender
- Object
The 'this' pointer value when the exception was caught.
- ex
- Exception
Exception
Return Value
True if the exception was handled. A return value of false will cause the exception to be re-thrown.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for