HttpMethodRouteConstraint(String[]) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.