Delegate for possibly handling an exception in the application.
Assembly: ServerAgent(in ServerAgent.dll)
Syntax
Visual Basic (declaration) |
---|
Public Delegate Function UnhandledExceptionHandler ( _ sender As Object, _ ex As Exception _ ) As Boolean |
Visual Basic (usage) |
---|
Dim instance As New UnhandledExceptionHandler( AddressOf HandlerMethod) |
C# |
---|
public delegate bool UnhandledExceptionHandler( Object sender, Exception ex ) |
Parameters
- sender
- Type:
System
.
.
::
.
.
Object
The 'this' pointer value when the exception was caught.
- ex
- Type:
System
.
.
::
.
.
Exception
Exception
Return value
Type: System . . :: . . BooleanTrue if the exception was handled. A return value of false will cause the exception to be re-thrown.