MaxLengthRouteConstraint(Int32) 构造函数

定义

初始化 MaxLengthRouteConstraint 类的新实例。

public:
 MaxLengthRouteConstraint(int maxLength);
public MaxLengthRouteConstraint (int maxLength);
new Microsoft.AspNetCore.Routing.Constraints.MaxLengthRouteConstraint : int -> Microsoft.AspNetCore.Routing.Constraints.MaxLengthRouteConstraint
Public Sub New (maxLength As Integer)

参数

maxLength
Int32

路由参数允许的最大长度。

适用于