HttpConfiguration Constructor
Namespace: System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Overload List
Name | Description | |
---|---|---|
![]() |
HttpConfiguration() | Initializes a new instance of the HttpConfiguration class. |
![]() |
HttpConfiguration(HttpRouteCollection) | Initializes a new instance of the HttpConfiguration class with an HTTP route collection. |
See Also
HttpConfiguration Class
System.Web.Http Namespace
Return to top
HttpConfiguration Constructor ()
Initializes a new instance of the HttpConfiguration class.
Syntax
public HttpConfiguration()
public:
HttpConfiguration()
new : unit -> HttpConfiguration
Public Sub New
Return to top
HttpConfiguration Constructor (HttpRouteCollection)
Initializes a new instance of the HttpConfiguration class with an HTTP route collection.
Syntax
public HttpConfiguration(
HttpRouteCollection routes
)
public:
HttpConfiguration(
HttpRouteCollection^ routes
)
new :
routes:HttpRouteCollection -> HttpConfiguration
Public Sub New (
routes As HttpRouteCollection
)
Parameters
routes
Type: System.Web.Http.HttpRouteCollectionThe HTTP route collection to associate with this instance.
Return to top