IHttpRouteConstraint.Match Method
Determines whether this instance equals a specified route.
Namespace: System.Web.Http.Routing
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Function Match ( _
request As HttpRequestMessage, _
route As IHttpRoute, _
parameterName As String, _
values As IDictionary(Of String, Object), _
routeDirection As HttpRouteDirection _
) As Boolean
'Usage
Dim instance As IHttpRouteConstraint
Dim request As HttpRequestMessage
Dim route As IHttpRoute
Dim parameterName As String
Dim values As IDictionary(Of String, Object)
Dim routeDirection As HttpRouteDirection
Dim returnValue As Boolean
returnValue = instance.Match(request, _
route, parameterName, values, routeDirection)
bool Match(
HttpRequestMessage request,
IHttpRoute route,
string parameterName,
IDictionary<string, Object> values,
HttpRouteDirection routeDirection
)
bool Match(
HttpRequestMessage^ request,
IHttpRoute^ route,
String^ parameterName,
IDictionary<String^, Object^>^ values,
HttpRouteDirection routeDirection
)
abstract Match :
request:HttpRequestMessage *
route:IHttpRoute *
parameterName:string *
values:IDictionary<string, Object> *
routeDirection:HttpRouteDirection -> bool
function Match(
request : HttpRequestMessage,
route : IHttpRoute,
parameterName : String,
values : IDictionary<String, Object>,
routeDirection : HttpRouteDirection
) : boolean
Parameters
- request
Type: HttpRequestMessage
The request.
- route
Type: System.Web.Http.Routing.IHttpRoute
The route to compare.
- parameterName
Type: System.String
The name of the parameter.
- values
Type: System.Collections.Generic.IDictionary<String, Object>
A list of parameter values.
- routeDirection
Type: System.Web.Http.Routing.HttpRouteDirection
The route direction.
Return Value
Type: System.Boolean
True if this instance equals a specified route; otherwise, false.