Partager via


ODataPathRouteConstraint.Match Méthode

Définition

Surcharges

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

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

Match(HttpRequestMessage, IHttpRoute, String, IDictionary<String,Object>, HttpRouteDirection)

Détermine si cette instance est égale à un itinéraire spécifié.

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

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, 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 Overridable Function Match (httpContext As HttpContext, route As IRouter, routeKey As String, values As RouteValueDictionary, routeDirection As RouteDirection) As Boolean

Paramètres

httpContext
HttpContext

Contexte Http.

route
IRouter

Itinéraire à comparer.

routeKey
String

Le nom du paramètre.

values
RouteValueDictionary

Liste de valeurs de paramètre.

routeDirection
RouteDirection

Sens de l'itinéraire.

Retours

True si cette instance correspond à un itinéraire spécifié ; sinon, False.

Implémente

Remarques

Cette signature utilise des types spécifiques à AspNetCore.

S’applique à

Match(HttpRequestMessage, IHttpRoute, String, IDictionary<String,Object>, HttpRouteDirection)

Détermine si cette instance est égale à un itinéraire spécifié.

public virtual bool Match (System.Net.Http.HttpRequestMessage request, System.Web.Http.Routing.IHttpRoute route, string parameterName, System.Collections.Generic.IDictionary<string,object> values, System.Web.Http.Routing.HttpRouteDirection routeDirection);
abstract member Match : System.Net.Http.HttpRequestMessage * System.Web.Http.Routing.IHttpRoute * string * System.Collections.Generic.IDictionary<string, obj> * System.Web.Http.Routing.HttpRouteDirection -> bool
override this.Match : System.Net.Http.HttpRequestMessage * System.Web.Http.Routing.IHttpRoute * string * System.Collections.Generic.IDictionary<string, obj> * System.Web.Http.Routing.HttpRouteDirection -> bool
Public Overridable Function Match (request As HttpRequestMessage, route As IHttpRoute, parameterName As String, values As IDictionary(Of String, Object), routeDirection As HttpRouteDirection) As Boolean

Paramètres

request
HttpRequestMessage

Demande.

route
System.Web.Http.Routing.IHttpRoute

Itinéraire à comparer.

parameterName
String

Le nom du paramètre.

values
IDictionary<String,Object>

Liste de valeurs de paramètre.

routeDirection
System.Web.Http.Routing.HttpRouteDirection

Sens de l'itinéraire.

Retours

True si cette instance correspond à un itinéraire spécifié ; sinon, False.

Implémente

System.Web.Http.Routing.IHttpRouteConstraint.Match(System.Net.Http.HttpRequestMessage,System.Web.Http.Routing.IHttpRoute,System.String,System.Collections.Generic.IDictionary{System.String,System.Object},System.Web.Http.Routing.HttpRouteDirection)

Remarques

Cette signature utilise des types spécifiques à AspNet.

S’applique à