Delen via


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
GlobalFilterCollection
Implements

Constructors

GlobalFilterCollection()

Initializes a new instance of the GlobalFilterCollection class.

Properties

Count

Gets the number of filters in the global filter collection.

Methods

Add(Object, Int32)

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

Add(Object)

Adds the specified filter to the global filter collection.

Clear()

Removes all filters from the global filter collection.

Contains(Object)

Determines whether a filter is in the global filter collection.

GetEnumerator()

Returns an enumerator that iterates through the global filter collection.

Remove(Object)

Removes all the filters that match the specified filter.

Explicit Interface Implementations

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)

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

Applies to