共用方式為


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

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

適用於