ActionMethodSelectorAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |