共用方式為


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)

適用於