HttpResponseExceptionActionFilter Class

Summary

An action filter which sets [Microsoft.AspNet.Mvc.ActionExecutedContext.Result]() to an [Microsoft.AspNet.Mvc.ObjectResult]() if the exception type is [System.Web.Http.HttpResponseException](System.Web.Http.HttpResponseException.yml). This filter runs immediately after the action.

Syntax

public class HttpResponseExceptionActionFilter : IActionFilter, IOrderedFilter, IFilter

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.WebApiCompatShim.HttpResponseExceptionActionFilter

Properties

Order()
Return type:System.Int32
public int Order { get; set; }

Methods

OnActionExecuted(Microsoft.AspNet.Mvc.ActionExecutedContext)
Arguments:
public void OnActionExecuted(ActionExecutedContext context)
OnActionExecuting(Microsoft.AspNet.Mvc.ActionExecutingContext)
Arguments:
public void OnActionExecuting(ActionExecutingContext context)