Partager via


HttpActionContext Constructor (HttpControllerContext, HttpActionDescriptor)

Initializes a new instance of the HttpActionContext class.

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

Syntax

'Declaration
Public Sub New ( _
    controllerContext As HttpControllerContext, _
    actionDescriptor As HttpActionDescriptor _
)
'Usage
Dim controllerContext As HttpControllerContext
Dim actionDescriptor As HttpActionDescriptor

Dim instance As New HttpActionContext(controllerContext, _
    actionDescriptor)
public HttpActionContext(
    HttpControllerContext controllerContext,
    HttpActionDescriptor actionDescriptor
)
public:
HttpActionContext(
    HttpControllerContext^ controllerContext, 
    HttpActionDescriptor^ actionDescriptor
)
new : 
        controllerContext:HttpControllerContext * 
        actionDescriptor:HttpActionDescriptor -> HttpActionContext
public function HttpActionContext(
    controllerContext : HttpControllerContext, 
    actionDescriptor : HttpActionDescriptor
)

Parameters

See Also

Reference

HttpActionContext Class

HttpActionContext Overload

System.Web.Http.Controllers Namespace