AuthorizationFilterContext AuthorizationFilterContext AuthorizationFilterContext AuthorizationFilterContext Class

Definition

A context for authorization filters i.e. IAuthorizationFilter and IAsyncAuthorizationFilter implementations.

public ref class AuthorizationFilterContext : Microsoft::AspNetCore::Mvc::Filters::FilterContext
public class AuthorizationFilterContext : Microsoft.AspNetCore.Mvc.Filters.FilterContext
type AuthorizationFilterContext = class
    inherit FilterContext
Public Class AuthorizationFilterContext
Inherits FilterContext
Inheritance
AuthorizationFilterContextAuthorizationFilterContextAuthorizationFilterContextAuthorizationFilterContext

Constructors

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

Instantiates a new AuthorizationFilterContext instance.

Properties

ActionDescriptor ActionDescriptor ActionDescriptor ActionDescriptor

Gets or sets the ActionDescriptor for the selected action.

(Inherited from ActionContext)
Filters Filters Filters Filters

Gets all applicable IFilterMetadata implementations.

(Inherited from FilterContext)
HttpContext HttpContext HttpContext HttpContext

Gets or sets the HttpContext for the current request.

(Inherited from ActionContext)
ModelState ModelState ModelState ModelState

Gets the ModelStateDictionary.

(Inherited from ActionContext)
Result Result Result Result

Gets or sets the result of the request. Setting Result to a non-null value inside an authorization filter will short-circuit the remainder of the filter pipeline.

RouteData RouteData RouteData RouteData

Gets or sets the RouteData for the current request.

(Inherited from ActionContext)

Methods

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

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

(Inherited from FilterContext)
IsEffectivePolicy<TMetadata>(TMetadata) 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.

(Inherited from FilterContext)

Applies to