Table of Contents

Class HttpFilterCollection

Namespace
System.Web.Http.Filters
Assembly
System.Web.Http.dll

Represents a collection of HTTP filters.

public class HttpFilterCollection : IEnumerable<FilterInfo>, IEnumerable
Inheritance
HttpFilterCollection
Implements
Inherited Members

Constructors

HttpFilterCollection()

Initializes a new instance of the HttpFilterCollection class.

public HttpFilterCollection()

Properties

Count

Gets the number of elements in the collection.

public int Count { get; }

Property Value

int

The number of elements in the collection.

Methods

Add(IFilter)

Adds an item at the end of the collection.

public void Add(IFilter filter)

Parameters

filter IFilter

The item to add to the collection.

Clear()

Removes all item in the collection.

public void Clear()

Contains(IFilter)

Determines whether the collection contains the specified item.

public bool Contains(IFilter filter)

Parameters

filter IFilter

The item to check.

Returns

bool

true if the collection contains the specified item; otherwise, false.

GetEnumerator()

Gets an enumerator that iterates through the collection.

public IEnumerator<FilterInfo> GetEnumerator()

Returns

IEnumerator<FilterInfo>

An enumerator object that can be used to iterate through the collection.

Remove(IFilter)

Removes the specified item from the collection.

public void Remove(IFilter filter)

Parameters

filter IFilter

The item to remove in the collection.