HttpMethodAttribute Constructeurs

Définition

Surcharges

HttpMethodAttribute(IEnumerable<String>)

Crée un nouveau HttpMethodAttribute avec l’ensemble donné de méthodes HTTP.

HttpMethodAttribute(IEnumerable<String>, String)

Crée un nouveau HttpMethodAttribute avec l’ensemble donné de méthodes HTTP et le modèle d’itinéraire donné.

HttpMethodAttribute(IEnumerable<String>)

Source:
HttpMethodAttribute.cs
Source:
HttpMethodAttribute.cs

Crée un nouveau HttpMethodAttribute avec l’ensemble donné de méthodes 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))

Paramètres

httpMethods
IEnumerable<String>

S’applique à

HttpMethodAttribute(IEnumerable<String>, String)

Source:
HttpMethodAttribute.cs
Source:
HttpMethodAttribute.cs

Crée un nouveau HttpMethodAttribute avec l’ensemble donné de méthodes HTTP et le modèle d’itinéraire donné.

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)

Paramètres

httpMethods
IEnumerable<String>

Ensemble de méthodes prises en charge. Ce paramètre ne peut pas être null.

template
String

Modèle d'itinéraire.

S’applique à