Compartilhar via


ODataPathRouteConstraint.Match Método

Definição

Sobrecargas

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

Determina se o parâmetro da URL contém um valor válido para esta restrição.

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

Determina se esta instância é igual a uma rota especificada.

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

Determina se o parâmetro da URL contém um valor válido para esta restrição.

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

Parâmetros

httpContext
HttpContext

O contexto Http.

route
IRouter

A rota a ser comparada.

routeKey
String

O nome do parâmetro.

values
RouteValueDictionary

Uma lista de valores de parâmetro.

routeDirection
RouteDirection

A direção da rota.

Retornos

Verdadeiro, se esta instância for igual a uma rota especificada; caso contrário, falso.

Implementações

Comentários

Essa assinatura usa tipos específicos de AspNetCore.

Aplica-se a

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

Determina se esta instância é igual a uma rota especificada.

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

Parâmetros

request
HttpRequestMessage

A solicitação.

route
System.Web.Http.Routing.IHttpRoute

A rota a ser comparada.

parameterName
String

O nome do parâmetro.

values
IDictionary<String,Object>

Uma lista de valores de parâmetro.

routeDirection
System.Web.Http.Routing.HttpRouteDirection

A direção da rota.

Retornos

Verdadeiro, se esta instância for igual a uma rota especificada; caso contrário, falso.

Implementações

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)

Comentários

Essa assinatura usa tipos específicos de AspNet.

Aplica-se a