Share via


HttpMethodAttribute Costruttori

Definizione

Overload

HttpMethodAttribute(IEnumerable<String>)

Crea un nuovo HttpMethodAttribute oggetto con il set specificato di metodi HTTP.

HttpMethodAttribute(IEnumerable<String>, String)

Crea un nuovo HttpMethodAttribute oggetto con il set specificato di metodi HTTP un modello di route specificato.

HttpMethodAttribute(IEnumerable<String>)

Origine:
HttpMethodAttribute.cs
Origine:
HttpMethodAttribute.cs

Crea un nuovo HttpMethodAttribute oggetto con il set specificato di metodi 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))

Parametri

httpMethods
IEnumerable<String>

Si applica a

HttpMethodAttribute(IEnumerable<String>, String)

Origine:
HttpMethodAttribute.cs
Origine:
HttpMethodAttribute.cs

Crea un nuovo HttpMethodAttribute oggetto con il set specificato di metodi HTTP un modello di route specificato.

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)

Parametri

httpMethods
IEnumerable<String>

Set di metodi supportati. Non può essere Null.

template
String

Modello di route.

Si applica a