共用方式為


LengthRouteConstraint 建構函式

定義

多載

LengthRouteConstraint(Int32)

初始化 類別的新實例, LengthRouteConstraint 將路由參數限制為指定長度的字串。

LengthRouteConstraint(Int32, Int32)

初始化 類別的新實例, LengthRouteConstraint 將路由參數限制為指定長度的字串。

LengthRouteConstraint(Int32)

來源:
LengthRouteConstraint.cs
來源:
LengthRouteConstraint.cs
來源:
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)

來源:
LengthRouteConstraint.cs
來源:
LengthRouteConstraint.cs
來源:
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

路由參數允許的最大長度。

適用於