Share via


ODataPathRouteConstraint.Match Method

Definition

Overloads

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

Determines whether the URL parameter contains a valid value for this constraint.

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

Determines whether this instance equals a specified route.

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

Determines whether the URL parameter contains a valid value for this constraint.

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

Parameters

httpContext
HttpContext

The Http context.

route
IRouter

The route to compare.

routeKey
String

The name of the parameter.

values
RouteValueDictionary

A list of parameter values.

routeDirection
RouteDirection

The route direction.

Returns

True if this instance equals a specified route; otherwise, false.

Implements

Remarks

This signature uses types that are AspNetCore-specific.

Applies to

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

Determines whether this instance equals a specified route.

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

Parameters

request
HttpRequestMessage

The request.

route
System.Web.Http.Routing.IHttpRoute

The route to compare.

parameterName
String

The name of the parameter.

values
IDictionary<String,Object>

A list of parameter values.

routeDirection
System.Web.Http.Routing.HttpRouteDirection

The route direction.

Returns

True if this instance equals a specified route; otherwise, false.

Implements

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)

Remarks

This signature uses types that are AspNet-specific.

Applies to