HttpControllerContext Constructor
Namespace: System.Web.Http.Controllers
Assembly: System.Web.Http (in System.Web.Http.dll)
Overload List
Name | Description | |
---|---|---|
HttpControllerContext() | Initializes a new instance of the HttpControllerContext class. |
|
HttpControllerContext(HttpConfiguration, IHttpRouteData, HttpRequestMessage) | Initializes a new instance of the HttpControllerContext class. |
|
HttpControllerContext(HttpRequestContext, HttpRequestMessage, HttpControllerDescriptor, IHttpController) | Initializes a new instance of the HttpControllerContext class. |
See Also
HttpControllerContext Class
System.Web.Http.Controllers Namespace
Return to top
HttpControllerContext Constructor ()
Initializes a new instance of the HttpControllerContext class.
Syntax
public HttpControllerContext()
public:
HttpControllerContext()
new : unit -> HttpControllerContext
Public Sub New
Return to top
HttpControllerContext Constructor (HttpConfiguration, IHttpRouteData, HttpRequestMessage)
Initializes a new instance of the HttpControllerContext class.
Syntax
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 Sub New (
configuration As HttpConfiguration,
routeData As IHttpRouteData,
request As HttpRequestMessage
)
Parameters
configuration
Type: System.Web.Http.HttpConfigurationThe configuration.
routeData
Type: System.Web.Http.Routing.IHttpRouteDataThe route data.
request
Type: System.Net.Http.HttpRequestMessageThe request.
Return to top
HttpControllerContext Constructor (HttpRequestContext, HttpRequestMessage, HttpControllerDescriptor, IHttpController)
Initializes a new instance of the HttpControllerContext class.
Syntax
public HttpControllerContext(
HttpRequestContext requestContext,
HttpRequestMessage request,
HttpControllerDescriptor controllerDescriptor,
IHttpController controller
)
public:
HttpControllerContext(
HttpRequestContext^ requestContext,
HttpRequestMessage^ request,
HttpControllerDescriptor^ controllerDescriptor,
IHttpController^ controller
)
new :
requestContext:HttpRequestContext *
request:HttpRequestMessage *
controllerDescriptor:HttpControllerDescriptor *
controller:IHttpController -> HttpControllerContext
Public Sub New (
requestContext As HttpRequestContext,
request As HttpRequestMessage,
controllerDescriptor As HttpControllerDescriptor,
controller As IHttpController
)
Parameters
requestContext
Type: System.Web.Http.Controllers.HttpRequestContextThe request context.
request
Type: System.Net.Http.HttpRequestMessageThe HTTP request.
controllerDescriptor
Type: System.Web.Http.Controllers.HttpControllerDescriptorThe controller descriptor.
controller
Type: System.Web.Http.Controllers.IHttpControllerThe controller.
Return to top