共用方式為


IntRouteConstraint 類別

定義

限制路由參數只代表 32 位整數值。

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

建構函式

IntRouteConstraint()

限制路由參數只代表 32 位整數值。

方法

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

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

明確介面實作

IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String)

限制路由參數只代表 32 位整數值。

適用於