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)

约束某个路由参数,使之仅代表小数值。

适用于