HttpRoute.ProcessConstraint 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
Protected Overridable Function ProcessConstraint ( _
request As HttpRequestMessage, _
constraint As Object, _
parameterName As String, _
values As HttpRouteValueDictionary, _
routeDirection As HttpRouteDirection _
) As Boolean
'Usage
Dim request As HttpRequestMessage
Dim constraint As Object
Dim parameterName As String
Dim values As HttpRouteValueDictionary
Dim routeDirection As HttpRouteDirection
Dim returnValue As Boolean
returnValue = Me.ProcessConstraint(request, _
constraint, parameterName, values, _
routeDirection)
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 function ProcessConstraint(
request : HttpRequestMessage,
constraint : Object,
parameterName : String,
values : HttpRouteValueDictionary,
routeDirection : HttpRouteDirection
) : boolean
Parameters
- request
Type: HttpRequestMessage
The HTTP request.
- constraint
Type: System.Object
The constraints for the route parameters.
- parameterName
Type: System.String
The name of the parameter.
- values
Type: System.Web.Http.Routing.HttpRouteValueDictionary
The list of parameter values.
- routeDirection
Type: System.Web.Http.Routing.HttpRouteDirection
One of the enumeration values of the [System.Web.Http.Routing.HttpRouteDirection] enumeration.
Return Value
Type: System.Boolean
true if this instance equals a specified route; otherwise, false.