RangeRouteConstraint.Match(HttpContext, IRouter, String, RouteValueDictionary, RouteDirection) Méthode

Définition

Détermine si le paramètre d’URL contient une valeur valide pour cette contrainte.

public:
 virtual bool Match(Microsoft::AspNetCore::Http::HttpContext ^ httpContext, Microsoft::AspNetCore::Routing::IRouter ^ route, System::String ^ routeKey, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ values, Microsoft::AspNetCore::Routing::RouteDirection routeDirection);
public bool Match (Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection);
public bool Match (Microsoft.AspNetCore.Http.HttpContext? httpContext, Microsoft.AspNetCore.Routing.IRouter? route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection);
abstract member Match : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Routing.IRouter * string * Microsoft.AspNetCore.Routing.RouteValueDictionary * Microsoft.AspNetCore.Routing.RouteDirection -> bool
override this.Match : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Routing.IRouter * string * Microsoft.AspNetCore.Routing.RouteValueDictionary * Microsoft.AspNetCore.Routing.RouteDirection -> bool
Public Function Match (httpContext As HttpContext, route As IRouter, routeKey As String, values As RouteValueDictionary, routeDirection As RouteDirection) As Boolean

Paramètres

httpContext
HttpContext

Objet qui encapsule des informations sur la demande HTTP.

route
IRouter

Routeur auquel appartient cette contrainte.

routeKey
String

Nom du paramètre en cours de vérification.

values
RouteValueDictionary

Dictionnaire qui contient les paramètres de l’URL.

routeDirection
RouteDirection

Objet qui indique si la vérification de contrainte est exécutée au quand une requête entrante est traitée ou quand une URL est générée.

Retours

Boolean

true si le paramètre d’URL contient une valeur valide ; Sinon, false.

Implémente

S’applique à