MvcFilter Constructor (Boolean, Int32)
Initializes a new instance of the MvcFilter class and specifies the order of filters and whether multiple filters are allowed.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Protected Sub New ( _
allowMultiple As Boolean, _
order As Integer _
)
'Usage
Dim allowMultiple As Boolean
Dim order As Integer
Dim instance As New MvcFilter(allowMultiple, _
order)
protected MvcFilter(
bool allowMultiple,
int order
)
protected:
MvcFilter(
bool allowMultiple,
int order
)
protected function MvcFilter(
allowMultiple : boolean,
order : int
)
Parameters
- allowMultiple
Type: System.Boolean
true to specify that multiple filters of the same type are allowed; otherwise, false.
- order
Type: System.Int32
The filter order.
Remarks
Filter order determines order only for filters of the same type. For more information about ASP.NET MVC filters, see Filtering in ASP.NET MVC.