Partager via


HttpConfiguration Constructor (HttpRouteCollection)

Initializes a new instance of the HttpConfiguration class with an HTTP route collection.

Namespace:  System.Web.Http
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public Sub New ( _
    routes As HttpRouteCollection _
)
'Usage
Dim routes As HttpRouteCollection

Dim instance As New HttpConfiguration(routes)
public HttpConfiguration(
    HttpRouteCollection routes
)
public:
HttpConfiguration(
    HttpRouteCollection^ routes
)
new : 
        routes:HttpRouteCollection -> HttpConfiguration
public function HttpConfiguration(
    routes : HttpRouteCollection
)

Parameters

See Also

Reference

HttpConfiguration Class

HttpConfiguration Overload

System.Web.Http Namespace