FloatRouteConstraint 类

定义

约束某个路由参数,使之仅代表 32 位浮点值。

public ref class FloatRouteConstraint : Microsoft::AspNetCore::Routing::IRouteConstraint
public class FloatRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint
public class FloatRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy
type FloatRouteConstraint = class
    interface IRouteConstraint
type FloatRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
type FloatRouteConstraint = class
    interface IParameterPolicy
    interface IRouteConstraint
type FloatRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
    interface IParameterLiteralNodeMatchingPolicy
Public Class FloatRouteConstraint
Implements IRouteConstraint
Public Class FloatRouteConstraint
Implements IParameterLiteralNodeMatchingPolicy, IRouteConstraint
继承
FloatRouteConstraint
实现

构造函数

FloatRouteConstraint()

约束某个路由参数,使之仅代表 32 位浮点值。

方法

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

确定 URL 参数是否包含此约束的有效值。

显式接口实现

IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String)

约束某个路由参数,使之仅代表 32 位浮点值。

适用于