HttpMethodActionConstraint Třída

Definice

Implementace IActionConstraint použité k vynucení filtrování metod HTTP při použití MVC s podporou starší verze IRouter . Lze HttpMethodActionConstraint použít k určení sady metod HTTP podporovaných akcí.

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
Dědičnost
HttpMethodActionConstraint
Implementuje

Konstruktory

HttpMethodActionConstraint(IEnumerable<String>)

Vytvoří novou instanci položky HttpMethodActionConstraint.

Pole

HttpMethodConstraintOrder

Hodnota Order používaná nástrojem HttpMethodActionConstraint.

Vlastnosti

HttpMethods

Získá seznam povolených metod HTTP. Vrátí prázdný seznam, pokud jsou povolené všechny metody HTTP.

Order

Pořadí omezení.

Metody

Accept(ActionConstraintContext)

Určuje, zda je akce platným kandidátem pro výběr.

Platí pro