Class FilterProviderCollection
Represents the collection of filter providers for the application.
public class FilterProviderCollection : Collection<IFilterProvider>, IList<IFilterProvider>, ICollection<IFilterProvider>, IList, ICollection, IReadOnlyList<IFilterProvider>, IReadOnlyCollection<IFilterProvider>, IEnumerable<IFilterProvider>, IEnumerable
- Inheritance
-
FilterProviderCollection
- Implements
- Inherited Members
Constructors
FilterProviderCollection()
Initializes a new instance of the FilterProviderCollection class.
public FilterProviderCollection()
FilterProviderCollection(IList<IFilterProvider>)
Initializes a new instance of the FilterProviderCollection class with specified list of filter provider.
public FilterProviderCollection(IList<IFilterProvider> providers)
Parameters
providers
IList<IFilterProvider>The list of filter providers.
Methods
ClearItems()
Removes all elements from the collection.
protected override void ClearItems()
GetFilters(ControllerContext, ActionDescriptor)
Returns the collection of filter providers.
public IEnumerable<Filter> GetFilters(ControllerContext controllerContext, ActionDescriptor actionDescriptor)
Parameters
controllerContext
ControllerContextThe controller context.
actionDescriptor
ActionDescriptorThe action descriptor.
Returns
- IEnumerable<Filter>
The collection of filter providers.
InsertItem(int, IFilterProvider)
Inserts an element into the collection at the specified index.
protected override void InsertItem(int index, IFilterProvider item)
Parameters
index
intThe zero-based index at which item should be inserted.
item
IFilterProviderThe object to insert. The value can be null for reference types.
RemoveItem(int)
Removes the element at the specified index of the collection
protected override void RemoveItem(int index)
Parameters
index
intThe zero-based index of the element to remove.
SetItem(int, IFilterProvider)
Replaces the element at the specified index.
protected override void SetItem(int index, IFilterProvider item)
Parameters
index
intThe zero-based index of the element to replace.
item
IFilterProviderThe new value for the element at the specified index. The value can be null for reference types.