HttpMethodActionConstraint(IEnumerable<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 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.