Partilhar via


HttpMethodRouteConstraint(String[]) Construtor

Definição

Cria uma nova instância do HttpMethodRouteConstraint que aceita os métodos HTTP especificados por allowedMethods.

public:
 HttpMethodRouteConstraint(... cli::array <System::String ^> ^ allowedMethods);
public HttpMethodRouteConstraint (params string[] allowedMethods);
new Microsoft.AspNetCore.Routing.Constraints.HttpMethodRouteConstraint : string[] -> Microsoft.AspNetCore.Routing.Constraints.HttpMethodRouteConstraint
Public Sub New (ParamArray allowedMethods As String())

Parâmetros

allowedMethods
String[]

Os métodos HTTP permitidos.

Aplica-se a