FilterContext FilterContext FilterContext Class

Definition

An abstract context for filters.

public abstract class FilterContext : Microsoft.AspNetCore.Mvc.ActionContext
type FilterContext = class
    inherit ActionContext
Public MustInherit Class FilterContext
Inherits ActionContext
Inheritance
FilterContextFilterContextFilterContext
Derived

Constructors

FilterContext(ActionContext, IList<IFilterMetadata>) FilterContext(ActionContext, IList<IFilterMetadata>) FilterContext(ActionContext, IList<IFilterMetadata>)

Instantiates a new FilterContext instance.

Properties

ActionDescriptor ActionDescriptor ActionDescriptor

Gets or sets the ActionDescriptor for the selected action.

(Inherited from ActionContext)
Filters Filters Filters

Gets all applicable IFilterMetadata implementations.

HttpContext HttpContext HttpContext

Gets or sets the HttpContext for the current request.

(Inherited from ActionContext)
ModelState ModelState ModelState

Gets the ModelStateDictionary.

(Inherited from ActionContext)
RouteData RouteData RouteData

Gets or sets the RouteData for the current request.

(Inherited from ActionContext)

Methods

FindEffectivePolicy<TMetadata>() FindEffectivePolicy<TMetadata>() FindEffectivePolicy<TMetadata>()

Returns the most effective (most specific) policy of type TMetadata applied to the action associated with the FilterContext.

IsEffectivePolicy<TMetadata>(TMetadata) IsEffectivePolicy<TMetadata>(TMetadata) IsEffectivePolicy<TMetadata>(TMetadata)

Returns a value indicating whether the provided IFilterMetadata is the most effective policy (most specific) applied to the action associated with the FilterContext.

Applies to