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

 

Determines whether this instance equals a specified route.

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

Syntax

public bool Match(
    HttpRequestMessage request,
    IHttpRoute route,
    string parameterName,
    IDictionary<string, object> values,
    HttpRouteDirection routeDirection
)
public:
virtual bool Match(
    HttpRequestMessage^ request,
    IHttpRoute^ route,
    String^ parameterName,
    IDictionary<String^, Object^>^ values,
    HttpRouteDirection routeDirection
) sealed
abstract Match : 
        request:HttpRequestMessage *
        route:IHttpRoute *
        parameterName:string *
        values:IDictionary<string, Object> *
        routeDirection:HttpRouteDirection -> bool
override Match : 
        request:HttpRequestMessage *
        route:IHttpRoute *
        parameterName:string *
        values:IDictionary<string, Object> *
        routeDirection:HttpRouteDirection -> bool
Public Function Match (
    request As HttpRequestMessage,
    route As IHttpRoute,
    parameterName As String,
    values As IDictionary(Of String, Object),
    routeDirection As HttpRouteDirection
) As Boolean

Parameters

Return Value

Type: System.Boolean

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

Implements

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

See Also

MaxLengthRouteConstraint Class
System.Web.Http.Routing.Constraints Namespace

Return to top