共用方式為


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 參數是否包含對這個條件約束有效的值。

適用於