UnhandledThreadPoolExceptionHandler Delegate
Raised when an unhandled exception occurs in a thread pool used by the platform.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Delegate Function UnhandledThreadPoolExceptionHandler ( _
ex As Exception, _
method As WaitCallback, _
state As Object _
) As Boolean
'Usage
Dim instance As New UnhandledThreadPoolExceptionHandler(AddressOf HandlerMethod)
public delegate bool UnhandledThreadPoolExceptionHandler(
Exception ex,
WaitCallback method,
Object state
)
Parameters
- ex
Type: System..::..Exception
The unhandled exception thrown.
- method
Type: System.Threading..::..WaitCallback
The method that is called on the thread pool and caused the unhandled exception.
- state
Type: System..::..Object
The state object that was passed to the method.
Return Value
Type: System..::..Boolean
Remarks
If this delegate returns true, the exception is ignored; otherwise it is rethrown.