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
- routes
Type: System.Web.Http.HttpRouteCollection
The HTTP route collection to associate with this instance.