HttpMethodActionConstraint(IEnumerable<String>) Constructor

Definition

Creates a new instance of 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))

Parameters

httpMethods
IEnumerable<String>

The list of HTTP methods to allow. Providing an empty list will allow any HTTP method.

Applies to