HttpMethodAttribute Constructors

Definition

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>)

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)

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.

Applies to