共用方式為


HttpRequestBase.RequestContext 屬性

定義

在衍生類別中覆寫時,取得目前要求的 RequestContext 執行個體。

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

屬性值

RequestContext

目前要求的 RequestContext 執行個體。 若為非路由的要求,則傳回的 RequestContext 是空物件。

例外狀況

備註

這個屬性可讓您存取 RouteData 目前要求的物件。

適用於