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


Gets the RequestContext instance of the current request.

 property System::Web::Routing::RequestContext ^ RequestContext { System::Web::Routing::RequestContext ^ get(); void set(System::Web::Routing::RequestContext ^ value); };
[set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public System.Web.Routing.RequestContext RequestContext { get; set; }
member this.RequestContext : System.Web.Routing.RequestContext with get, set
Public Property RequestContext As RequestContext
Property Value

The RequestContext instance of the current request. For non-routed requests, the RequestContext object that is returned is empty.


This property provides access to the RouteData object for the current request. For more information about ASP.NET routing, see.ASP.NET Routing.

Applies to