Freigeben über


ExceptionFilterAttribute.IExceptionFilter.ExecuteExceptionFilterAsync Method

Asynchronously executes the exception filter.

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

Syntax

'Declaration
Private Function ExecuteExceptionFilterAsync ( _
    actionExecutedContext As HttpActionExecutedContext, _
    cancellationToken As CancellationToken _
) As Task Implements IExceptionFilter.ExecuteExceptionFilterAsync
'Usage
Dim instance As ExceptionFilterAttribute
Dim actionExecutedContext As HttpActionExecutedContext
Dim cancellationToken As CancellationToken
Dim returnValue As Task

returnValue = CType(instance, IExceptionFilter).ExecuteExceptionFilterAsync(actionExecutedContext, _
    cancellationToken)
Task IExceptionFilter.ExecuteExceptionFilterAsync(
    HttpActionExecutedContext actionExecutedContext,
    CancellationToken cancellationToken
)
private:
virtual Task^ ExecuteExceptionFilterAsync(
    HttpActionExecutedContext^ actionExecutedContext, 
    CancellationToken cancellationToken
) sealed = IExceptionFilter::ExecuteExceptionFilterAsync
private abstract ExecuteExceptionFilterAsync : 
        actionExecutedContext:HttpActionExecutedContext * 
        cancellationToken:CancellationToken -> Task 
private override ExecuteExceptionFilterAsync : 
        actionExecutedContext:HttpActionExecutedContext * 
        cancellationToken:CancellationToken -> Task 
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

Parameters

Return Value

Type: System.Threading.Tasks.Task
The result of the execution.

Implements

IExceptionFilter.ExecuteExceptionFilterAsync(HttpActionExecutedContext, CancellationToken)

See Also

Reference

ExceptionFilterAttribute Class

System.Web.Http.Filters Namespace