Partilhar via


HttpMethodActionConstraint(IEnumerable<String>) Construtor

Definição

Cria uma nova instância de HttpMethodActionConstraint.

public:
 HttpMethodActionConstraint(System::Collections::Generic::IEnumerable<System::String ^> ^ httpMethods);
public HttpMethodActionConstraint (System.Collections.Generic.IEnumerable<string> httpMethods);
new Microsoft.AspNetCore.Mvc.ActionConstraints.HttpMethodActionConstraint : seq<string> -> Microsoft.AspNetCore.Mvc.ActionConstraints.HttpMethodActionConstraint
Public Sub New (httpMethods As IEnumerable(Of String))

Parâmetros

httpMethods
IEnumerable<String>

A lista de métodos HTTP a serem permitidos. Fornecer uma lista vazia permitirá qualquer método HTTP.

Aplica-se a