Udostępnij przez


ActionMethodSelectorAttribute Klasa

Definicja

Klasa bazowa dla atrybutów, które mogą implementować logikę warunkową w celu włączenia lub wyłączenia akcji dla danego żądania. Zobacz: 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
Dziedziczenie
ActionMethodSelectorAttribute
Atrybuty
Implementuje

Konstruktory

ActionMethodSelectorAttribute()

Klasa bazowa dla atrybutów, które mogą implementować logikę warunkową w celu włączenia lub wyłączenia akcji dla danego żądania. Zobacz: IActionConstraint.

Właściwości

Order

Kolejność ograniczeń.

Metody

Accept(ActionConstraintContext)

Określa, czy akcja jest prawidłowym kandydatem do wyboru.

IsValidForRequest(RouteContext, ActionDescriptor)

Określa, czy wybór akcji jest prawidłowy dla określonego kontekstu trasy.

Dotyczy