Sdílet prostřednictvím


HttpMethodAttribute Konstruktory

Definice

Přetížení

HttpMethodAttribute(IEnumerable<String>)

Vytvoří nový HttpMethodAttribute s danou sadou metod HTTP.

HttpMethodAttribute(IEnumerable<String>, String)

Vytvoří novou HttpMethodAttribute s danou sadou metod HTTP a danou šablonu trasy.

HttpMethodAttribute(IEnumerable<String>)

Zdroj:
HttpMethodAttribute.cs
Zdroj:
HttpMethodAttribute.cs
Zdroj:
HttpMethodAttribute.cs

Vytvoří nový HttpMethodAttribute s danou sadou metod HTTP.

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

Parametry

httpMethods
IEnumerable<String>

Platí pro

HttpMethodAttribute(IEnumerable<String>, String)

Zdroj:
HttpMethodAttribute.cs
Zdroj:
HttpMethodAttribute.cs
Zdroj:
HttpMethodAttribute.cs

Vytvoří novou HttpMethodAttribute s danou sadou metod HTTP a danou šablonu trasy.

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)

Parametry

httpMethods
IEnumerable<String>

Sada podporovaných metod. Nesmí mít hodnotu null.

template
String

Šablona trasy.

Platí pro