Share via


MinRouteConstraint.Match Method (HttpContextBase, Route, String, RouteValueDictionary, RouteDirection)

 

Determines whether this instance equals a specified route.

Namespace:   System.Web.Mvc.Routing.Constraints
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

public bool Match(
    HttpContextBase httpContext,
    Route route,
    string parameterName,
    RouteValueDictionary values,
    RouteDirection routeDirection
)
public:
virtual bool Match(
    HttpContextBase^ httpContext,
    Route^ route,
    String^ parameterName,
    RouteValueDictionary^ values,
    RouteDirection routeDirection
) sealed
abstract Match : 
        httpContext:HttpContextBase *
        route:Route *
        parameterName:string *
        values:RouteValueDictionary *
        routeDirection:RouteDirection -> bool
override Match : 
        httpContext:HttpContextBase *
        route:Route *
        parameterName:string *
        values:RouteValueDictionary *
        routeDirection:RouteDirection -> bool
Public Function Match (
    httpContext As HttpContextBase,
    route As Route,
    parameterName As String,
    values As RouteValueDictionary,
    routeDirection As RouteDirection
) As Boolean

Parameters

Return Value

Type: System.Boolean

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

Implements

IRouteConstraint.Match(HttpContextBase, Route, String, RouteValueDictionary, RouteDirection)

See Also

MinRouteConstraint Class
System.Web.Mvc.Routing.Constraints Namespace

Return to top