HttpMethodAttribute 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
HttpMethodAttribute(IEnumerable<String>) |
Membuat baru HttpMethodAttribute dengan sekumpulan metode HTTP yang diberikan. |
HttpMethodAttribute(IEnumerable<String>, String) |
Membuat baru HttpMethodAttribute dengan sekumpulan metode HTTP yang diberikan templat rute yang diberikan. |
HttpMethodAttribute(IEnumerable<String>)
- Sumber:
- HttpMethodAttribute.cs
- Sumber:
- HttpMethodAttribute.cs
- Sumber:
- HttpMethodAttribute.cs
Membuat baru HttpMethodAttribute dengan sekumpulan metode HTTP yang diberikan.
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>
Berlaku untuk
HttpMethodAttribute(IEnumerable<String>, String)
- Sumber:
- HttpMethodAttribute.cs
- Sumber:
- HttpMethodAttribute.cs
- Sumber:
- HttpMethodAttribute.cs
Membuat baru HttpMethodAttribute dengan sekumpulan metode HTTP yang diberikan templat rute yang diberikan.
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>
Kumpulan metode yang didukung. Mungkin tidak null.
- template
- String
Templat rute.
Berlaku untuk
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk