Partager via


HttpRoute.ProcessConstraint Method (HttpRequestMessage, Object, String, HttpRouteValueDictionary, HttpRouteDirection)

 

Determines whether this instance equals a specified route.

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

Syntax

protected virtual bool ProcessConstraint(
    HttpRequestMessage request,
    object constraint,
    string parameterName,
    HttpRouteValueDictionary values,
    HttpRouteDirection routeDirection
)
protected:
virtual bool ProcessConstraint(
    HttpRequestMessage^ request,
    Object^ constraint,
    String^ parameterName,
    HttpRouteValueDictionary^ values,
    HttpRouteDirection routeDirection
)
abstract ProcessConstraint : 
        request:HttpRequestMessage *
        constraint:Object *
        parameterName:string *
        values:HttpRouteValueDictionary *
        routeDirection:HttpRouteDirection -> bool
override ProcessConstraint : 
        request:HttpRequestMessage *
        constraint:Object *
        parameterName:string *
        values:HttpRouteValueDictionary *
        routeDirection:HttpRouteDirection -> bool
Protected Overridable Function ProcessConstraint (
    request As HttpRequestMessage,
    constraint As Object,
    parameterName As String,
    values As HttpRouteValueDictionary,
    routeDirection As HttpRouteDirection
) As Boolean

Parameters

  • constraint
    Type: System.Object

    The constraints for the route parameters.

Return Value

Type: System.Boolean

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

See Also

HttpRoute Class
System.Web.Http.Routing Namespace

Return to top