Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Determines whether this instance equals a specified route.
Namespace:   System.Web.Http.Routing
Assembly:  System.Web.Http (in System.Web.Http.dll)
Syntax
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 As HttpRequestMessage,
    route As IHttpRoute,
    parameterName As String,
    values As IDictionary(Of String, Object),
    routeDirection As HttpRouteDirection
) As Boolean
Parameters
- request 
 Type: System.Net.Http.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.
See Also
IHttpRouteConstraint Interface
System.Web.Http.Routing Namespace
Return to top