HttpRequest.RequestContext HttpRequest.RequestContext HttpRequest.RequestContext HttpRequest.RequestContext Property

定義

取得目前要求的 RequestContext 執行個體。Gets the RequestContext instance of the current request.

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

屬性值

目前要求的 RequestContext 執行個體。The RequestContext instance of the current request. 如果是非路由的要求,則傳回的 RequestContext 是空物件。For non-routed requests, the RequestContext object that is returned is empty.

備註

這個屬性可讓您存取RouteData目前要求的物件。This property provides access to the RouteData object for the current request. 如需 ASP.NET 路由的詳細資訊,請參閱。ASP.NET 路由For more information about ASP.NET routing, see.ASP.NET Routing.

適用於

另請參閱