LengthRouteConstraint 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
LengthRouteConstraint(Int32) |
初始化 类的新实例, LengthRouteConstraint 该实例将路由参数限制为给定长度的字符串。 |
LengthRouteConstraint(Int32, Int32) |
初始化 类的新实例, LengthRouteConstraint 该实例将路由参数限制为给定长度的字符串。 |
LengthRouteConstraint(Int32)
- Source:
- LengthRouteConstraint.cs
- Source:
- LengthRouteConstraint.cs
- Source:
- LengthRouteConstraint.cs
初始化 类的新实例, LengthRouteConstraint 该实例将路由参数限制为给定长度的字符串。
public:
LengthRouteConstraint(int length);
public LengthRouteConstraint (int length);
new Microsoft.AspNetCore.Routing.Constraints.LengthRouteConstraint : int -> Microsoft.AspNetCore.Routing.Constraints.LengthRouteConstraint
Public Sub New (length As Integer)
参数
- length
- Int32
路由参数的长度。
适用于
LengthRouteConstraint(Int32, Int32)
- Source:
- LengthRouteConstraint.cs
- Source:
- LengthRouteConstraint.cs
- Source:
- LengthRouteConstraint.cs
初始化 类的新实例, LengthRouteConstraint 该实例将路由参数限制为给定长度的字符串。
public:
LengthRouteConstraint(int minLength, int maxLength);
public LengthRouteConstraint (int minLength, int maxLength);
new Microsoft.AspNetCore.Routing.Constraints.LengthRouteConstraint : int * int -> Microsoft.AspNetCore.Routing.Constraints.LengthRouteConstraint
Public Sub New (minLength As Integer, maxLength As Integer)
参数
- minLength
- Int32
路由参数允许的最小长度。
- maxLength
- Int32
路由参数允许的最大长度。