HttpRoute Constructor (String, HttpRouteValueDictionary, 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, _
dataTokens As HttpRouteValueDictionary, _
handler As HttpMessageHandler _
)
'Usage
Dim routeTemplate As String
Dim defaults As HttpRouteValueDictionary
Dim constraints As HttpRouteValueDictionary
Dim dataTokens As HttpRouteValueDictionary
Dim handler As HttpMessageHandler
Dim instance As New HttpRoute(routeTemplate, _
defaults, constraints, dataTokens, _
handler)
public HttpRoute(
string routeTemplate,
HttpRouteValueDictionary defaults,
HttpRouteValueDictionary constraints,
HttpRouteValueDictionary dataTokens,
HttpMessageHandler handler
)
public:
HttpRoute(
String^ routeTemplate,
HttpRouteValueDictionary^ defaults,
HttpRouteValueDictionary^ constraints,
HttpRouteValueDictionary^ dataTokens,
HttpMessageHandler^ handler
)
new :
routeTemplate:string *
defaults:HttpRouteValueDictionary *
constraints:HttpRouteValueDictionary *
dataTokens:HttpRouteValueDictionary *
handler:HttpMessageHandler -> HttpRoute
public function HttpRoute(
routeTemplate : String,
defaults : HttpRouteValueDictionary,
constraints : HttpRouteValueDictionary,
dataTokens : HttpRouteValueDictionary,
handler : HttpMessageHandler
)
Parameters
routeTemplate
Type: System.StringThe route template.
defaults
Type: System.Web.Http.Routing.HttpRouteValueDictionaryThe default values for the route parameters.
constraints
Type: System.Web.Http.Routing.HttpRouteValueDictionaryThe constraints for the route parameters.
dataTokens
Type: System.Web.Http.Routing.HttpRouteValueDictionaryAny additional tokens for the route parameters.
handler
Type: HttpMessageHandlerThe message handler that will be the recipient of the request.