PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Threading­Unhandled­Exception­Event­Args Class / Threading­Unhandled­Exception­Event­Args Properties

ThreadingUnhandledExceptionEventArgs Properties

The ThreadingUnhandledExceptionEventArgs type exposes the following members.

Properties
  NameDescription
Public propertyException
Gets the exception.
Public propertyIsHandled
Determines whether the exception has been handled. Clients of the UnhandledException event must set this property to true if they handle the exception. Otherwise, the exception will be rethrown.
Public propertyIsTaskMethod
Determines whether the exception occurred in a task-like method.
Public propertyMethod
Gets the method in which the exception occurred.
Public propertyReturnValue
Provides the value to return from the method if the exception has been handled. Clients of the UnhandledException event must set this property to the appropriate value if they set the IsHandled property to true.
Public propertySource
Gets the source component that caught the exception.
See Also