RequestContext.HttpContext 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取有关 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
属性值
包含有关 HTTP 请求的信息的对象。
注解
若要设置 HttpContext 属性,则在调用构造函数时,必须将值作为参数传递 RequestContext(HttpContextBase, RouteData) 。