FilterCollectionExtensions Class¶
Methods¶
-
Add
(System.Collections.Generic.ICollection<Microsoft.AspNet.Mvc.IFilter>, System.Type)¶ Adds a type representing an [Microsoft.AspNet.Mvc.IFilter]() to a filter collection.
Arguments: - filters (System.Collections.Generic.ICollection{Microsoft.AspNet.Mvc.IFilter}) – A collection of [Microsoft.AspNet.Mvc.IFilter]().
- filterType (System.Type) – Type representing an [Microsoft.AspNet.Mvc.IFilter]().
Return type: Microsoft.AspNet.Mvc.IFilter
Returns: An [Microsoft.AspNet.Mvc.IFilter]() representing the added type.
public static IFilter Add(ICollection<IFilter> filters, Type filterType)
-
Add
(System.Collections.Generic.ICollection<Microsoft.AspNet.Mvc.IFilter>, System.Type, System.Int32) Adds a type representing an [Microsoft.AspNet.Mvc.IFilter]() to a filter collection.
Arguments: - filters (System.Collections.Generic.ICollection{Microsoft.AspNet.Mvc.IFilter}) – A collection of [Microsoft.AspNet.Mvc.IFilter]().
- filterType (System.Type) – Type representing an [Microsoft.AspNet.Mvc.IFilter]().
- order (System.Int32) – The order of the added filter.
Return type: Microsoft.AspNet.Mvc.IFilter
Returns: An [Microsoft.AspNet.Mvc.IFilter]() representing the added type.
public static IFilter Add(ICollection<IFilter> filters, Type filterType, int order)
-
AddService
(System.Collections.Generic.ICollection<Microsoft.AspNet.Mvc.IFilter>, System.Type)¶ Adds a type representing an [Microsoft.AspNet.Mvc.IFilter]() to a filter collection.
Arguments: - filters (System.Collections.Generic.ICollection{Microsoft.AspNet.Mvc.IFilter}) – A collection of [Microsoft.AspNet.Mvc.IFilter]().
- filterType (System.Type) – Type representing an [Microsoft.AspNet.Mvc.IFilter]().
Return type: Microsoft.AspNet.Mvc.IFilter
Returns: An [Microsoft.AspNet.Mvc.IFilter]() representing the added service type.
public static IFilter AddService(ICollection<IFilter> filters, Type filterType)
-
AddService
(System.Collections.Generic.ICollection<Microsoft.AspNet.Mvc.IFilter>, System.Type, System.Int32) Adds a type representing an [Microsoft.AspNet.Mvc.IFilter]() to a filter collection.
Arguments: - filters (System.Collections.Generic.ICollection{Microsoft.AspNet.Mvc.IFilter}) – A collection of [Microsoft.AspNet.Mvc.IFilter]().
- filterType (System.Type) – Type representing an [Microsoft.AspNet.Mvc.IFilter]().
- order (System.Int32) – The order of the added filter.
Return type: Microsoft.AspNet.Mvc.IFilter
Returns: An [Microsoft.AspNet.Mvc.IFilter]() representing the added service type.
public static IFilter AddService(ICollection<IFilter> filters, Type filterType, int order)
-