Delen via


ActionMethodSelectorAttribute Class

Definition

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

public ref class ActionMethodSelectorAttribute abstract : Attribute, Microsoft::AspNetCore::Mvc::ActionConstraints::IActionConstraint
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public abstract class ActionMethodSelectorAttribute : Attribute, Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type ActionMethodSelectorAttribute = class
    inherit Attribute
    interface IActionConstraint
    interface IActionConstraintMetadata
Public MustInherit Class ActionMethodSelectorAttribute
Inherits Attribute
Implements IActionConstraint
Inheritance
ActionMethodSelectorAttribute
Attributes
Implements

Constructors

ActionMethodSelectorAttribute()

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