Sdílet prostřednictvím


ODataPathRouteConstraint.Match Metoda

Definice

Přetížení

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

Určuje, zda parametr adresy URL obsahuje platnou hodnotu pro toto omezení.

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

Určuje, zda se tato instance rovná zadané trase.

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

Určuje, zda parametr adresy URL obsahuje platnou hodnotu pro toto omezení.

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

Parametry

httpContext
HttpContext

Kontext HTTP.

route
IRouter

Trasa, která se má porovnat.

routeKey
String

Název parametru

values
RouteValueDictionary

Seznam hodnot parametrů.

routeDirection
RouteDirection

Směr trasy.

Návraty

True, pokud se tato instance rovná zadané trase; jinak nepravda.

Implementuje

Poznámky

Tento podpis používá typy, které jsou specifické pro AspNetCore.

Platí pro

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

Určuje, zda se tato instance rovná zadané trase.

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

Parametry

request
HttpRequestMessage

Žádost

route
System.Web.Http.Routing.IHttpRoute

Trasa, která se má porovnat.

parameterName
String

Název parametru

values
IDictionary<String,Object>

Seznam hodnot parametrů.

routeDirection
System.Web.Http.Routing.HttpRouteDirection

Směr trasy.

Návraty

True, pokud se tato instance rovná zadané trase; jinak nepravda.

Implementuje

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)

Poznámky

Tento podpis používá typy, které jsou specifické pro AspNet.

Platí pro