GlobalFilterCollection Class
Represents a class that contains all the global filters.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | GlobalFilterCollection() | Initializes a new instance of the GlobalFilterCollection class. |
| Name | Description | |
|---|---|---|
![]() | Count | Gets the number of filters in the global filter collection. |
| Name | Description | |
|---|---|---|
![]() | Add(Object) | Adds the specified filter to the global filter collection. |
![]() | Add(Object, Int32) | Adds the specified filter to the global filter collection using the specified filter run order. |
![]() | Clear() | Removes all filters from the global filter collection. |
![]() | Contains(Object) | Determines whether a filter is in the global filter collection. |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | GetEnumerator() | Returns an enumerator that iterates through the global filter collection. |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | Remove(Object) | Removes all the filters that match the specified filter. |
![]() | ToString() | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | 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. |
| Name | Description | |
|---|---|---|
![]() | AsSerializable(Of Filter)() | Convenience API to allow an IEnumerable{T} (such as returned by Linq2Sql) to be serialized by DataContractSerilizer.(Defined by IEnumerableExtensions.) |
Global filters run for every action of every controller. You can register a global filter using the Filters static registration endpoint.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.jpeg?cs-save-lang=1&cs-lang=vb)
.jpeg?cs-save-lang=1&cs-lang=vb)
.jpeg?cs-save-lang=1&cs-lang=vb)
.jpeg?cs-save-lang=1&cs-lang=vb)