Bagikan melalui


HttpMethodAttribute Konstruktor

Definisi

Overload

HttpMethodAttribute(IEnumerable<String>)

Membuat baru HttpMethodAttribute dengan sekumpulan metode HTTP yang diberikan.

HttpMethodAttribute(IEnumerable<String>, String)

Membuat baru HttpMethodAttribute dengan sekumpulan metode HTTP yang diberikan templat rute yang diberikan.

HttpMethodAttribute(IEnumerable<String>)

Sumber:
HttpMethodAttribute.cs
Sumber:
HttpMethodAttribute.cs
Sumber:
HttpMethodAttribute.cs

Membuat baru HttpMethodAttribute dengan sekumpulan metode HTTP yang diberikan.

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

Parameter

httpMethods
IEnumerable<String>

Berlaku untuk

HttpMethodAttribute(IEnumerable<String>, String)

Sumber:
HttpMethodAttribute.cs
Sumber:
HttpMethodAttribute.cs
Sumber:
HttpMethodAttribute.cs

Membuat baru HttpMethodAttribute dengan sekumpulan metode HTTP yang diberikan templat rute yang diberikan.

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)

Parameter

httpMethods
IEnumerable<String>

Kumpulan metode yang didukung. Mungkin tidak null.

template
String

Templat rute.

Berlaku untuk