HttpMethodAttribute 建構函式

定義

多載

HttpMethodAttribute(IEnumerable<String>)

使用指定的 HTTP 方法集建立新的 HttpMethodAttribute

HttpMethodAttribute(IEnumerable<String>, String)

使用指定的 HTTP 方法集,建立新的 HttpMethodAttribute ,並指定路由範本。

HttpMethodAttribute(IEnumerable<String>)

來源:
HttpMethodAttribute.cs
來源:
HttpMethodAttribute.cs
來源:
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)

來源:
HttpMethodAttribute.cs
來源:
HttpMethodAttribute.cs
來源:
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

路由範本。

適用於