GlobalFilterCollection GlobalFilterCollection GlobalFilterCollection Class

Definition

Represents a class that contains all the global filters.

public sealed class GlobalFilterCollection : System.Collections.Generic.IEnumerable<System.Web.Mvc.Filter>, System.Web.Mvc.IFilterProvider
type GlobalFilterCollection = class
    interface seq<Filter>
    interface IEnumerable
    interface IFilterProvider
Public NotInheritable Class GlobalFilterCollection
Implements IEnumerable(Of Filter), IFilterProvider
Inheritance
GlobalFilterCollectionGlobalFilterCollectionGlobalFilterCollection
Implements

Constructors

GlobalFilterCollection() GlobalFilterCollection() GlobalFilterCollection()

Initializes a new instance of the GlobalFilterCollection class.

Properties

Count Count Count

Gets the number of filters in the global filter collection.

Methods

Add(Object) Add(Object) Add(Object)

Adds the specified filter to the global filter collection.

Add(Object, Int32) Add(Object, Int32) Add(Object, Int32)

Adds the specified filter to the global filter collection using the specified filter run order.

Clear() Clear() Clear()

Removes all filters from the global filter collection.

Contains(Object) Contains(Object) Contains(Object)

Determines whether a filter is in the global filter collection.

GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumerator that iterates through the global filter collection.

Remove(Object) Remove(Object) Remove(Object)

Removes all the filters that match the specified filter.

Explicit Interface Implementations

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

This API supports the ASP.NET MVC infrastructure and is not intended to be used directly from your code.

IFilterProvider.GetFilters(ControllerContext, ActionDescriptor) IFilterProvider.GetFilters(ControllerContext, ActionDescriptor) IFilterProvider.GetFilters(ControllerContext, ActionDescriptor)

This API supports the ASP.NET MVC infrastructure and is not intended to be used directly from your code.

Applies to