Język

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

Nazwa Opis
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

Nazwa Opis
Order

Kolejność ograniczeń.

Metody

Nazwa Opis
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