Share via


IExceptionHandler.HandleAsync Method (ExceptionHandlerContext, CancellationToken)

 

Process an unhandled exception, either allowing it to propagate or handling it by providing a response message to return instead.

Namespace:   System.Web.Http.ExceptionHandling
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

Task HandleAsync(
    ExceptionHandlerContext context,
    CancellationToken cancellationToken
)
Task^ HandleAsync(
    ExceptionHandlerContext^ context,
    CancellationToken cancellationToken
)
abstract HandleAsync : 
        context:ExceptionHandlerContext *
        cancellationToken:CancellationToken -> Task
Function HandleAsync (
    context As ExceptionHandlerContext,
    cancellationToken As CancellationToken
) As Task

Parameters

Return Value

Type: System.Threading.Tasks.Task

A task representing the asynchronous exception handling operation.

See Also

IExceptionHandler Interface
System.Web.Http.ExceptionHandling Namespace

Return to top