Udostępnij przez


HttpMethodActionConstraint Klasa

Definicja

Implementacja IActionConstraint używana do wymuszania filtrowania metod HTTP, gdy mvC jest używana ze starszą IRouter obsługą. Element HttpMethodActionConstraint może służyć do określania zestawu metod HTTP obsługiwanych przez akcję.

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
Dziedziczenie
HttpMethodActionConstraint
Implementuje

Konstruktory

HttpMethodActionConstraint(IEnumerable<String>)

Tworzy nowe wystąpienie klasy HttpMethodActionConstraint.

Pola

HttpMethodConstraintOrder

Wartość Order używana przez HttpMethodActionConstraintelement .

Właściwości

HttpMethods

Pobiera listę dozwolonych metod HTTP. Jeśli wszystkie metody HTTP są dozwolone, zostanie zwrócona pusta lista.

Order

Kolejność ograniczeń.

Metody

Accept(ActionConstraintContext)

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

Dotyczy