Bagikan melalui


HttpMethodMetadata Konstruktor

Definisi

Overload

HttpMethodMetadata(IEnumerable<String>)

Sumber:
HttpMethodMetadata.cs
Sumber:
HttpMethodMetadata.cs

Menginisialisasi instans baru kelas HttpMethodMetadata.

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>

Metode HTTP yang digunakan selama perutean. Koleksi kosong berarti metode HTTP apa pun akan diterima.

Berlaku untuk

HttpMethodMetadata(IEnumerable<String>, Boolean)

Sumber:
HttpMethodMetadata.cs
Sumber:
HttpMethodMetadata.cs

Menginisialisasi instans baru kelas HttpMethodMetadata.

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>

Metode HTTP yang digunakan selama perutean. Koleksi kosong berarti metode HTTP apa pun akan diterima.

acceptCorsPreflight
Boolean

Nilai yang menunjukkan apakah perutean menerima permintaan preflight CORS.

Berlaku untuk