Bagikan melalui


HttpMethodActionConstraint(IEnumerable<String>) Konstruktor

Definisi

Membuat instans baru .HttpMethodActionConstraint

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

Parameter

httpMethods
IEnumerable<String>

Daftar metode HTTP yang diizinkan. Menyediakan daftar kosong akan memungkinkan metode HTTP apa pun.

Berlaku untuk