Partager via


HttpRoute Constructor (String, 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 _
)
'Usage
Dim routeTemplate As String
Dim defaults As HttpRouteValueDictionary

Dim instance As New HttpRoute(routeTemplate, _
    defaults)
public HttpRoute(
    string routeTemplate,
    HttpRouteValueDictionary defaults
)
public:
HttpRoute(
    String^ routeTemplate, 
    HttpRouteValueDictionary^ defaults
)
new : 
        routeTemplate:string * 
        defaults:HttpRouteValueDictionary -> HttpRoute
public function HttpRoute(
    routeTemplate : String, 
    defaults : HttpRouteValueDictionary
)

Parameters

See Also

Reference

HttpRoute Class

HttpRoute Overload

System.Web.Http.Routing Namespace