HttpMethodAttribute Constructors
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.
Overloads
HttpMethodAttribute(IEnumerable<String>) |
Creates a new HttpMethodAttribute with the given set of HTTP methods. |
HttpMethodAttribute(IEnumerable<String>, String) |
Creates a new HttpMethodAttribute with the given set of HTTP methods an the given route template. |
HttpMethodAttribute(IEnumerable<String>)
- Source:
- HttpMethodAttribute.cs
- Source:
- HttpMethodAttribute.cs
- Source:
- HttpMethodAttribute.cs
Creates a new HttpMethodAttribute with the given set of HTTP methods.
public:
HttpMethodAttribute(System::Collections::Generic::IEnumerable<System::String ^> ^ httpMethods);
public HttpMethodAttribute (System.Collections.Generic.IEnumerable<string> httpMethods);
new Microsoft.AspNetCore.Mvc.Routing.HttpMethodAttribute : seq<string> -> Microsoft.AspNetCore.Mvc.Routing.HttpMethodAttribute
Public Sub New (httpMethods As IEnumerable(Of String))
Parameters
- httpMethods
- IEnumerable<String>
Applies to
HttpMethodAttribute(IEnumerable<String>, String)
- Source:
- HttpMethodAttribute.cs
- Source:
- HttpMethodAttribute.cs
- Source:
- HttpMethodAttribute.cs
Creates a new HttpMethodAttribute with the given set of HTTP methods an the given route template.
public:
HttpMethodAttribute(System::Collections::Generic::IEnumerable<System::String ^> ^ httpMethods, System::String ^ template);
public HttpMethodAttribute (System.Collections.Generic.IEnumerable<string> httpMethods, string template);
public HttpMethodAttribute (System.Collections.Generic.IEnumerable<string> httpMethods, string? template);
new Microsoft.AspNetCore.Mvc.Routing.HttpMethodAttribute : seq<string> * string -> Microsoft.AspNetCore.Mvc.Routing.HttpMethodAttribute
Public Sub New (httpMethods As IEnumerable(Of String), template As String)
Parameters
- httpMethods
- IEnumerable<String>
The set of supported methods. May not be null.
- template
- String
The route template.