Поделиться через


HttpMethodAttribute Конструкторы

Определение

Перегрузки

HttpMethodAttribute(IEnumerable<String>)

Создает объект HttpMethodAttribute с заданным набором методов HTTP.

HttpMethodAttribute(IEnumerable<String>, String)

Создает новый HttpMethodAttribute объект с заданным набором методов HTTP для заданного шаблона маршрута.

HttpMethodAttribute(IEnumerable<String>)

Исходный код:
HttpMethodAttribute.cs
Исходный код:
HttpMethodAttribute.cs

Создает объект HttpMethodAttribute с заданным набором методов 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))

Параметры

httpMethods
IEnumerable<String>

Применяется к

HttpMethodAttribute(IEnumerable<String>, String)

Исходный код:
HttpMethodAttribute.cs
Исходный код:
HttpMethodAttribute.cs

Создает новый HttpMethodAttribute объект с заданным набором методов HTTP для заданного шаблона маршрута.

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

Шаблон маршрута.

Применяется к