共用方式為


DecimalRouteConstraint 類別

定義

限制路由參數僅表示十進位值。

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

建構函式

DecimalRouteConstraint()

限制路由參數僅表示十進位值。

方法

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

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

明確介面實作

IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String)

限制路由參數僅表示十進位值。

適用於