HttpRoute Constructor (String, HttpRouteValueDictionary, HttpRouteValueDictionary)
Initializes a new instance of the HttpRoute class.
Namespace: System.Web.Http.Routing
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Sub New ( _
routeTemplate As String, _
defaults As HttpRouteValueDictionary, _
constraints As HttpRouteValueDictionary _
)
'Usage
Dim routeTemplate As String
Dim defaults As HttpRouteValueDictionary
Dim constraints As HttpRouteValueDictionary
Dim instance As New HttpRoute(routeTemplate, _
defaults, constraints)
public HttpRoute(
string routeTemplate,
HttpRouteValueDictionary defaults,
HttpRouteValueDictionary constraints
)
public:
HttpRoute(
String^ routeTemplate,
HttpRouteValueDictionary^ defaults,
HttpRouteValueDictionary^ constraints
)
new :
routeTemplate:string *
defaults:HttpRouteValueDictionary *
constraints:HttpRouteValueDictionary -> HttpRoute
public function HttpRoute(
routeTemplate : String,
defaults : HttpRouteValueDictionary,
constraints : HttpRouteValueDictionary
)
Parameters
- routeTemplate
Type: System.String
The route template.
- defaults
Type: System.Web.Http.Routing.HttpRouteValueDictionary
The default values for the route parameters.
- constraints
Type: System.Web.Http.Routing.HttpRouteValueDictionary
The constraints for the route parameters.