HttpContext Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the HttpContext class.
HttpContext(HttpWorkerRequest) |
Initializes a new instance of the HttpContext class that uses the specified worker-request object. |
HttpContext(HttpRequest, HttpResponse) |
Initializes a new instance of the HttpContext class by using the specified request and response objects. |
Initializes a new instance of the HttpContext class that uses the specified worker-request object.
public:
HttpContext(System::Web::HttpWorkerRequest ^ wr);
public HttpContext(System.Web.HttpWorkerRequest wr);
new System.Web.HttpContext : System.Web.HttpWorkerRequest -> System.Web.HttpContext
Public Sub New (wr As HttpWorkerRequest)
Parameters
The HttpWorkerRequest object for the current HTTP request.
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Initializes a new instance of the HttpContext class by using the specified request and response objects.
public:
HttpContext(System::Web::HttpRequest ^ request, System::Web::HttpResponse ^ response);
public HttpContext(System.Web.HttpRequest request, System.Web.HttpResponse response);
new System.Web.HttpContext : System.Web.HttpRequest * System.Web.HttpResponse -> System.Web.HttpContext
Public Sub New (request As HttpRequest, response As HttpResponse)
Parameters
- request
- HttpRequest
The HttpRequest object for the current HTTP request.
- response
- HttpResponse
The HttpResponse object for the current HTTP request.
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: