Share via


ActionMethodSelectorAttribute Klasse

Definition

Basisklasse für Attribute, die bedingte Logik implementieren können, um eine Aktion für eine bestimmte Anforderung zu aktivieren oder zu deaktivieren. Siehe 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
Vererbung
ActionMethodSelectorAttribute
Attribute
Implementiert

Konstruktoren

ActionMethodSelectorAttribute()

Basisklasse für Attribute, die bedingte Logik implementieren können, um eine Aktion für eine bestimmte Anforderung zu aktivieren oder zu deaktivieren. Siehe IActionConstraint.

Eigenschaften

Order

Die Einschränkungsreihenfolge.

Methoden

Accept(ActionConstraintContext)

Bestimmt, ob eine Aktion ein gültiger Kandidat für die Auswahl ist.

IsValidForRequest(RouteContext, ActionDescriptor)

Bestimmt, ob die Aktionsauswahl für den angegebenen Routenkontext gültig ist.

Gilt für: