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
- controllerContext
Type: System.Web.Http.Controllers.HttpControllerContext
The controller context.
- actionDescriptor
Type: System.Web.Http.Controllers.HttpActionDescriptor
The action descriptor.