共用方式為


MinLengthRouteConstraint 類別

定義

將路由參數限制為長度下限的字串。

public ref class MinLengthRouteConstraint : Microsoft::AspNetCore::Routing::IRouteConstraint
public class MinLengthRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint
public class MinLengthRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy
type MinLengthRouteConstraint = class
    interface IRouteConstraint
type MinLengthRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
type MinLengthRouteConstraint = class
    interface IParameterPolicy
    interface IRouteConstraint
type MinLengthRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
    interface IParameterLiteralNodeMatchingPolicy
Public Class MinLengthRouteConstraint
Implements IRouteConstraint
Public Class MinLengthRouteConstraint
Implements IParameterLiteralNodeMatchingPolicy, IRouteConstraint
繼承
MinLengthRouteConstraint
實作

建構函式

MinLengthRouteConstraint(Int32)

初始化 MinLengthRouteConstraint 類別的新執行個體。

屬性

MinLength

取得路由參數允許的最小長度。

方法

Match(HttpContext, IRouter, String, RouteValueDictionary, RouteDirection)

判斷 URL 參數是否包含對這個條件約束有效的值。

明確介面實作

IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String)

將路由參數限制為長度下限的字串。

適用於