Share via


ExceptionHandler.HandleAsync Method (ExceptionHandlerContext, CancellationToken)

 

When overridden in a derived class, handles the exception asynchronously.

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

Syntax

public virtual Task HandleAsync(
    ExceptionHandlerContext context,
    CancellationToken cancellationToken
)
public:
virtual Task^ HandleAsync(
    ExceptionHandlerContext^ context,
    CancellationToken cancellationToken
)
abstract HandleAsync : 
        context:ExceptionHandlerContext *
        cancellationToken:CancellationToken -> Task
override HandleAsync : 
        context:ExceptionHandlerContext *
        cancellationToken:CancellationToken -> Task
Public Overridable 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

ExceptionHandler Class
System.Web.Http.ExceptionHandling Namespace

Return to top