Export (0) Print
Expand All

IMvcFilter.AllowMultiple Property

When implemented in a class, gets or sets a value that indicates whether multiple filters are allowed.

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

bool AllowMultiple { get; }

Property Value

Type: System.Boolean
true if multiple filters are allowed; otherwise, false.

This property is used during sorting in order to eliminate duplicate filters. When AllowMultiple is true, all instances of the same filter type are allowed. When AllowMultiple is false, only the last instance of the same filter type is allowed, and all others are discarded. If your filter does not implement IMvcFilter, the default value for AllowMultiple is true.

Show:
© 2014 Microsoft