Share via


QueryFilterProvider Class

Definition

An implementation of System.Web.Http.Filters.IFilterProvider that applies an action filter to any action with an IQueryable or IQueryable<T> return type that doesn't bind a parameter of type ODataQueryOptions.

public class QueryFilterProvider : System.Web.Http.Filters.IFilterProvider
public class QueryFilterProvider : Microsoft.AspNetCore.Mvc.Filters.IFilterProvider
type QueryFilterProvider = class
    interface IFilterProvider
Public Class QueryFilterProvider
Implements IFilterProvider
Inheritance
QueryFilterProvider
Implements
System.Web.Http.Filters.IFilterProvider IFilterProvider

Constructors

QueryFilterProvider(IActionFilter)

Initializes a new instance of the QueryFilterProvider class.

QueryFilterProvider(IActionFilter)

Initializes a new instance of the QueryFilterProvider class.

Properties

Order

Gets the order value for determining the order of execution of providers. Providers execute in ascending numeric value of the Microsoft.AspNetCore.Mvc.Filters.IFilterProvider.Order property.

QueryFilter

Gets the action filter that executes the query.

Methods

GetFilters(HttpConfiguration, HttpActionDescriptor)

Provides filters to apply to the specified action.

OnProvidersExecuted(FilterProviderContext)

Summary: Called in decreasing Microsoft.AspNetCore.Mvc.Filters.IFilterProvider.Order, after all Microsoft.AspNetCore.Mvc.Filters.IFilterProviders have executed once.

OnProvidersExecuting(FilterProviderContext)

Provides filters to apply to the specified action.

Applies to