HttpMethodRouteConstraint(String[]) 构造函数   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建 接受 由 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 方法。