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)
Syntax
public int Order { get; protected set; }
public:
property int Order {
int get();
protected: void set(int value);
}
member Order : int with get, set
Public Property Order As Integer
Get
Protected Set
End Property
Property Value
Type: System.Int32
The order in which the filter is applied.
Remarks
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 .Unable to find linked topic '64f865ae-5bf9-4b70-8c68-3ec88f60cd2e'.
See Also
Filter Class
System.Web.Mvc Namespace
Return to top