共用方式為


MaxRouteConstraint 類別

定義

限制路由參數為最大值的整數。

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

建構函式

MaxRouteConstraint(Int64)

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

屬性

Max

取得路由參數允許的最大值。

方法

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

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

明確介面實作

IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String)

限制路由參數為最大值的整數。

適用於