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
request
Type: System.Net.Http.HttpRequestMessageThe HTTP request.
constraint
Type: System.ObjectThe constraints for the route parameters.
parameterName
Type: System.StringThe name of the parameter.
values
Type: System.Web.Http.Routing.HttpRouteValueDictionaryThe list of parameter values.
routeDirection
Type: System.Web.Http.Routing.HttpRouteDirectionOne 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.
See Also
HttpRoute Class
System.Web.Http.Routing Namespace
Return to top