Sprache

HttpMethodActionConstraint Klasse

Definition

Die Implementierung von, die zum Erzwingen der IActionConstraint HTTP-Methodenfilterung verwendet wird, wenn MVC mit Legacyunterstützung IRouter verwendet wird. Die HttpMethodActionConstraint kann verwendet werden, um den Satz von HTTP-Methoden zu bestimmen, die von einer Aktion unterstützt werden.

public ref class HttpMethodActionConstraint : Microsoft::AspNetCore::Mvc::ActionConstraints::IActionConstraint
public class HttpMethodActionConstraint : Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint
type HttpMethodActionConstraint = class
    interface IActionConstraint
    interface IActionConstraintMetadata
Public Class HttpMethodActionConstraint
Implements IActionConstraint
Vererbung
HttpMethodActionConstraint
Implementiert

Konstruktoren

Name Beschreibung
HttpMethodActionConstraint(IEnumerable<String>)

Erstellt eine neue Instanz von HttpMethodActionConstraint.

Felder

Name Beschreibung
HttpMethodConstraintOrder

Der Order von HttpMethodActionConstraintverwendete Wert.

Eigenschaften

Name Beschreibung
HttpMethods

Ruft die Liste der zulässigen HTTP-Methoden ab. Gibt eine leere Liste zurück, wenn alle HTTP-Methoden zulässig sind.

Order

Die Einschränkungsreihenfolge.

Methoden

Name Beschreibung
Accept(ActionConstraintContext)

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

Gilt für: