HttpContext 构造函数

定义

初始化 HttpContext 类的新实例。

重载

HttpContext(HttpWorkerRequest)

使用指定的辅助请求对象初始化 HttpContext 类的新实例。

HttpContext(HttpRequest, HttpResponse)

使用指定的请求和响应对象初始化 HttpContext 类的新实例。

HttpContext(HttpWorkerRequest)

使用指定的辅助请求对象初始化 HttpContext 类的新实例。

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)

参数

wr
HttpWorkerRequest

当前 HTTP 请求的 HttpWorkerRequest 对象。

适用于

HttpContext(HttpRequest, HttpResponse)

使用指定的请求和响应对象初始化 HttpContext 类的新实例。

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)

参数

request
HttpRequest

当前 HTTP 请求的 HttpRequest 对象。

response
HttpResponse

当前 HTTP 请求的 HttpResponse 对象。

适用于