Share via


HttpMethodAttribute Oluşturucular

Tanım

Aşırı Yüklemeler

HttpMethodAttribute(IEnumerable<String>)

Verilen HTTP yöntemleri kümesiyle yeni HttpMethodAttribute bir oluşturur.

HttpMethodAttribute(IEnumerable<String>, String)

Verilen HTTP yöntemleri kümesiyle verilen yol şablonuyla yeni HttpMethodAttribute bir oluşturur.

HttpMethodAttribute(IEnumerable<String>)

Kaynak:
HttpMethodAttribute.cs
Kaynak:
HttpMethodAttribute.cs

Verilen HTTP yöntemleri kümesiyle yeni HttpMethodAttribute bir oluşturur.

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

Parametreler

httpMethods
IEnumerable<String>

Şunlara uygulanır

HttpMethodAttribute(IEnumerable<String>, String)

Kaynak:
HttpMethodAttribute.cs
Kaynak:
HttpMethodAttribute.cs

Verilen HTTP yöntemleri kümesiyle verilen yol şablonuyla yeni HttpMethodAttribute bir oluşturur.

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)

Parametreler

httpMethods
IEnumerable<String>

Desteklenen yöntemler kümesi. Null olamaz.

template
String

Yol şablonu.

Şunlara uygulanır