RouteConstraintMatcher.Match Méthode

Définition

Détermine si routeValues correspond au fourni constraints.

public:
 static bool Match(System::Collections::Generic::IDictionary<System::String ^, Microsoft::AspNetCore::Routing::IRouteConstraint ^> ^ constraints, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ routeValues, Microsoft::AspNetCore::Http::HttpContext ^ httpContext, Microsoft::AspNetCore::Routing::IRouter ^ route, Microsoft::AspNetCore::Routing::RouteDirection routeDirection, Microsoft::Extensions::Logging::ILogger ^ logger);
public static bool Match (System.Collections.Generic.IDictionary<string,Microsoft.AspNetCore.Routing.IRouteConstraint> constraints, Microsoft.AspNetCore.Routing.RouteValueDictionary routeValues, Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, Microsoft.AspNetCore.Routing.RouteDirection routeDirection, Microsoft.Extensions.Logging.ILogger logger);
static member Match : System.Collections.Generic.IDictionary<string, Microsoft.AspNetCore.Routing.IRouteConstraint> * Microsoft.AspNetCore.Routing.RouteValueDictionary * Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Routing.IRouter * Microsoft.AspNetCore.Routing.RouteDirection * Microsoft.Extensions.Logging.ILogger -> bool
Public Shared Function Match (constraints As IDictionary(Of String, IRouteConstraint), routeValues As RouteValueDictionary, httpContext As HttpContext, route As IRouter, routeDirection As RouteDirection, logger As ILogger) As Boolean

Paramètres

constraints
IDictionary<String,IRouteConstraint>

Contraintes de l’itinéraire.

routeValues
RouteValueDictionary

Valeurs de paramètre d’itinéraire extraites de l’itinéraire correspondant.

httpContext
HttpContext

HttpContext associé à la demande actuelle.

route
IRouter

Routeur auquel cette contrainte appartient.

routeDirection
RouteDirection

Indique si la contrainte case activée est effectuée lorsque la requête entrante est gérée ou lorsqu’une URL est générée.

logger
ILogger

L’ILogger<TCategoryName>opérateur

Retours

true si toutes les valeurs de routage correspondent à leurs contraintes.

S’applique à