HttpMethodAttribute Konstruktoren

Definition

Überlädt

HttpMethodAttribute(IEnumerable<String>)

Erstellt eine neue HttpMethodAttribute mit dem angegebenen Satz von HTTP-Methoden.

HttpMethodAttribute(IEnumerable<String>, String)

Erstellt eine neue HttpMethodAttribute mit dem angegebenen Satz von HTTP-Methoden und der angegebenen Routenvorlage.

HttpMethodAttribute(IEnumerable<String>)

Quelle:
HttpMethodAttribute.cs
Quelle:
HttpMethodAttribute.cs

Erstellt eine neue HttpMethodAttribute mit dem angegebenen Satz von HTTP-Methoden.

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

Parameter

httpMethods
IEnumerable<String>

Gilt für:

HttpMethodAttribute(IEnumerable<String>, String)

Quelle:
HttpMethodAttribute.cs
Quelle:
HttpMethodAttribute.cs

Erstellt eine neue HttpMethodAttribute mit dem angegebenen Satz von HTTP-Methoden und der angegebenen Routenvorlage.

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)

Parameter

httpMethods
IEnumerable<String>

Der Satz der unterstützten Methoden. Darf nicht NULL sein.

template
String

Die Routenvorlage.

Gilt für: