HttpRequestWrapper.RequestContext Property

Definition

Gets the RequestContext instance of the current request.

C#
public override System.Web.Routing.RequestContext RequestContext { get; }
C#
public override System.Web.Routing.RequestContext RequestContext { get; set; }

Property Value

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

Remarks

This property provides access to the RouteData object for the current request.

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1