HttpMethodRouteConstraint(String[]) 建構函式

定義

建立 的新實例 HttpMethodRouteConstraint ,接受 所 allowedMethods 指定的 HTTP 方法。

public:
 HttpMethodRouteConstraint(... cli::array <System::String ^> ^ allowedMethods);
public HttpMethodRouteConstraint (params string[] allowedMethods);
new Microsoft.AspNetCore.Routing.Constraints.HttpMethodRouteConstraint : string[] -> Microsoft.AspNetCore.Routing.Constraints.HttpMethodRouteConstraint
Public Sub New (ParamArray allowedMethods As String())

參數

allowedMethods
String[]

允許的 HTTP 方法。

適用於