Op Englesch liesen

Deelen iwwer


ActionMethodSelectorAttribute Class

Definition

Base class for attributes which can implement conditional logic to enable or disable an action for a given request. See IActionConstraint.

C#
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public abstract class ActionMethodSelectorAttribute : Attribute, Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint
Inheritance
ActionMethodSelectorAttribute
Attributes
Implements

Constructors

Properties

Order

The constraint order.

Methods

Accept(ActionConstraintContext)

Determines whether an action is a valid candidate for selection.

IsValidForRequest(RouteContext, ActionDescriptor)

Determines whether the action selection is valid for the specified route context.

Applies to

Produkt Versiounen
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0