MinLengthRouteConstraint 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将路由参数约束为具有最小长度的字符串。
public ref class MinLengthRouteConstraint : Microsoft::AspNetCore::Routing::IRouteConstraint
public class MinLengthRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint
public class MinLengthRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy
type MinLengthRouteConstraint = class
interface IRouteConstraint
type MinLengthRouteConstraint = class
interface IRouteConstraint
interface IParameterPolicy
type MinLengthRouteConstraint = class
interface IParameterPolicy
interface IRouteConstraint
type MinLengthRouteConstraint = class
interface IRouteConstraint
interface IParameterPolicy
interface IParameterLiteralNodeMatchingPolicy
Public Class MinLengthRouteConstraint
Implements IRouteConstraint
Public Class MinLengthRouteConstraint
Implements IParameterLiteralNodeMatchingPolicy, IRouteConstraint
- 继承
-
MinLengthRouteConstraint
- 实现
构造函数
MinLengthRouteConstraint(Int32) |
初始化 MinLengthRouteConstraint 类的新实例。 |
属性
MinLength |
获取路由参数允许的最小长度。 |
方法
Match(HttpContext, IRouter, String, RouteValueDictionary, RouteDirection) |
确定 URL 参数是否包含此约束的有效值。 |
显式接口实现
IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String) |
将路由参数约束为具有最小长度的字符串。 |