HttpMethodAttribute 构造函数

定义

重载

HttpMethodAttribute(IEnumerable<String>)

使用给定的 HTTP 方法集创建新的 HttpMethodAttribute

HttpMethodAttribute(IEnumerable<String>, String)

使用给定的 HTTP 方法集和给定路由模板创建新的 HttpMethodAttribute

HttpMethodAttribute(IEnumerable<String>)

Source:
HttpMethodAttribute.cs
Source:
HttpMethodAttribute.cs
Source:
HttpMethodAttribute.cs

使用给定的 HTTP 方法集创建新的 HttpMethodAttribute

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

参数

httpMethods
IEnumerable<String>

适用于

HttpMethodAttribute(IEnumerable<String>, String)

Source:
HttpMethodAttribute.cs
Source:
HttpMethodAttribute.cs
Source:
HttpMethodAttribute.cs

使用给定的 HTTP 方法集和给定路由模板创建新的 HttpMethodAttribute

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)

参数

httpMethods
IEnumerable<String>

支持的方法集。 不能为 null。

template
String

路由模板。

适用于