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

适用于