Share via


HttpMethodRouteConstraint(String[]) 构造函数

定义

创建 接受 由 allowedMethods指定的 HTTP 方法的新实例HttpMethodRouteConstraint

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 方法。

适用于