KnownRouteValueConstraint 类

定义

一个 IRouteConstraint ,它表示已知的路由值。

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

构造函数

KnownRouteValueConstraint()
已过时.

一个 IRouteConstraint ,它表示已知的路由值。

KnownRouteValueConstraint(IActionDescriptorCollectionProvider)

初始化 KnownRouteValueConstraint 的实例。

方法

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

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

适用于