HttpMethodMetadata Konstruktor
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
| HttpMethodMetadata(IEnumerable<String>) |
Menginisialisasi instans baru kelas HttpMethodMetadata. |
| HttpMethodMetadata(IEnumerable<String>, Boolean) |
Menginisialisasi instans baru kelas HttpMethodMetadata. |
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.