LengthRouteConstraint 构造函数

定义

重载

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

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

适用于