.NET Framework Class Library
FilterAttribute.Order Property
Gets or sets the order in which the action filters are executed.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
Visual Basic (Declaration)
Public Property Order As Integer
Visual Basic (Usage)
Dim instance As FilterAttribute Dim value As Integer value = instance.Order instance.Order = value
C#
public int Order { get; set; }
Visual C++
public: virtual property int Order { int get () sealed; void set (int value) sealed; }
JScript
final function get Order () : int final function set Order (value : int)
Implements
IMvcFilter.OrderRemarks
The Order property takes an integer value that must be 0 (the default) or greater, with one exception. Omitting the Order property gives the filter an order value of -1, which indicates an unspecified order. Any action filter in a scope whose Order property is set to -1 will be executed in an undetermined order, but before the filters that have a specified order.
See Also