HttpMethodAttribute HttpMethodAttribute HttpMethodAttribute Constructors

Definition

Overloads

HttpMethodAttribute(IEnumerable<String>) HttpMethodAttribute(IEnumerable<String>) HttpMethodAttribute(IEnumerable<String>)

Creates a new HttpMethodAttribute with the given set of HTTP methods.

The set of supported HTTP methods.
HttpMethodAttribute(IEnumerable<String>, String) HttpMethodAttribute(IEnumerable<String>, String) HttpMethodAttribute(IEnumerable<String>, String)

Creates a new HttpMethodAttribute with the given set of HTTP methods an the given route template.

HttpMethodAttribute(IEnumerable<String>) HttpMethodAttribute(IEnumerable<String>) HttpMethodAttribute(IEnumerable<String>)

Creates a new HttpMethodAttribute with the given set of HTTP methods.

The set of supported HTTP methods.
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>

HttpMethodAttribute(IEnumerable<String>, String) HttpMethodAttribute(IEnumerable<String>, String) 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<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.

template
String String String

The route template. May not be null.

Applies to