RequestContext.HttpContext 属性

定义

获取有关 HTTP 请求的信息。

public:
 property System::Web::HttpContextBase ^ HttpContext { System::Web::HttpContextBase ^ get(); };
public:
 virtual property System::Web::HttpContextBase ^ HttpContext { System::Web::HttpContextBase ^ get(); void set(System::Web::HttpContextBase ^ value); };
public System.Web.HttpContextBase HttpContext { get; }
public virtual System.Web.HttpContextBase HttpContext { get; set; }
member this.HttpContext : System.Web.HttpContextBase
member this.HttpContext : System.Web.HttpContextBase with get, set
Public ReadOnly Property HttpContext As HttpContextBase
Public Overridable Property HttpContext As HttpContextBase

属性值

HttpContextBase

包含有关 HTTP 请求的信息的对象。

注解

若要设置 HttpContext 属性,则在调用构造函数时,必须将值作为参数传递 RequestContext(HttpContextBase, RouteData)

适用于