HttpRouteCollection.ValidateConstraint Method (String, String, Object)
Validates that a constraint is valid for an IHttpRoute created by a call to the CreateRoute method.
Namespace: System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
protected virtual void ValidateConstraint(
string routeTemplate,
string name,
object constraint
)
protected:
virtual void ValidateConstraint(
String^ routeTemplate,
String^ name,
Object^ constraint
)
abstract ValidateConstraint :
routeTemplate:string *
name:string *
constraint:Object -> unit
override ValidateConstraint :
routeTemplate:string *
name:string *
constraint:Object -> unit
Protected Overridable Sub ValidateConstraint (
routeTemplate As String,
name As String,
constraint As Object
)
Parameters
routeTemplate
Type: System.StringThe route template.
name
Type: System.StringThe constraint name.
constraint
Type: System.ObjectThe constraint object.
See Also
HttpRouteCollection Class
System.Web.Http Namespace
Return to top