共用方式為


HttpRequestWrapper.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 override System.Web.Routing.RequestContext RequestContext { get; }
public override 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 Overrides ReadOnly Property RequestContext As RequestContext
Public Overrides Property RequestContext As RequestContext

屬性值

RequestContext

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

備註

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

適用於