Filter.Order Property


Gets the order in which the filter is applied.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public int Order { get; protected set; }

Property Value

Type: System.Int32

The order in which the filter is applied.

Filters are run in the order of the filter type. Authorization filters run first and exception filters run last. Within each filter type, the Order value specifies the order. The execution order of filters with the same order and scope is undefined. OnActionExecuting, OnResultExecuting and OnAuthorization are run in forward order; OnActionExecuted, OnResultExecuting, and OnException are run in reverse order. For more information about ASP.NET MVC filters, see .

Return to top