Partager via


HttpControllerContext Constructor (HttpConfiguration, IHttpRouteData, )

Initializes a new instance of the HttpControllerContext class.

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

Syntax

'Declaration
Public Sub New ( _
    configuration As HttpConfiguration, _
    routeData As IHttpRouteData, _
    request As HttpRequestMessage _
)
'Usage
Dim configuration As HttpConfiguration
Dim routeData As IHttpRouteData
Dim request As HttpRequestMessage

Dim instance As New HttpControllerContext(configuration, _
    routeData, request)
public HttpControllerContext(
    HttpConfiguration configuration,
    IHttpRouteData routeData,
    HttpRequestMessage request
)
public:
HttpControllerContext(
    HttpConfiguration^ configuration, 
    IHttpRouteData^ routeData, 
    HttpRequestMessage^ request
)
new : 
        configuration:HttpConfiguration * 
        routeData:IHttpRouteData * 
        request:HttpRequestMessage -> HttpControllerContext
public function HttpControllerContext(
    configuration : HttpConfiguration, 
    routeData : IHttpRouteData, 
    request : HttpRequestMessage
)

Parameters

  • request
    Type: HttpRequestMessage
    The request.

See Also

Reference

HttpControllerContext Class

HttpControllerContext Overload

System.Web.Http.Controllers Namespace