HttpMethodMetadata Konstruktoren

Definition

Überlädt

HttpMethodMetadata(IEnumerable<String>)

Initialisiert eine neue Instanz der HttpMethodMetadata-Klasse.

HttpMethodMetadata(IEnumerable<String>, Boolean)

Initialisiert eine neue Instanz der HttpMethodMetadata-Klasse.

HttpMethodMetadata(IEnumerable<String>)

Quelle:
HttpMethodMetadata.cs
Quelle:
HttpMethodMetadata.cs

Initialisiert eine neue Instanz der HttpMethodMetadata-Klasse.

public:
 HttpMethodMetadata(System::Collections::Generic::IEnumerable<System::String ^> ^ httpMethods);
public HttpMethodMetadata (System.Collections.Generic.IEnumerable<string> httpMethods);
new Microsoft.AspNetCore.Routing.HttpMethodMetadata : seq<string> -> Microsoft.AspNetCore.Routing.HttpMethodMetadata
Public Sub New (httpMethods As IEnumerable(Of String))

Parameter

httpMethods
IEnumerable<String>

Die http-Methoden, die während des Routings verwendet werden. Eine leere Auflistung bedeutet, dass jede HTTP-Methode akzeptiert wird.

Gilt für:

HttpMethodMetadata(IEnumerable<String>, Boolean)

Quelle:
HttpMethodMetadata.cs
Quelle:
HttpMethodMetadata.cs

Initialisiert eine neue Instanz der HttpMethodMetadata-Klasse.

public:
 HttpMethodMetadata(System::Collections::Generic::IEnumerable<System::String ^> ^ httpMethods, bool acceptCorsPreflight);
public HttpMethodMetadata (System.Collections.Generic.IEnumerable<string> httpMethods, bool acceptCorsPreflight);
new Microsoft.AspNetCore.Routing.HttpMethodMetadata : seq<string> * bool -> Microsoft.AspNetCore.Routing.HttpMethodMetadata
Public Sub New (httpMethods As IEnumerable(Of String), acceptCorsPreflight As Boolean)

Parameter

httpMethods
IEnumerable<String>

Die http-Methoden, die während des Routings verwendet werden. Eine leere Auflistung bedeutet, dass jede HTTP-Methode akzeptiert wird.

acceptCorsPreflight
Boolean

Ein Wert, der angibt, ob das Routing CORS-Preflight-Anforderungen akzeptiert.

Gilt für: