Share via


HttpMethodRouteConstraint(String[]) Constructor

Definition

Creates a new instance of HttpMethodRouteConstraint that accepts the HTTP methods specified by 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())

Parameters

allowedMethods
String[]

The allowed HTTP methods.

Applies to