RequestContext Constructor (HttpContextBase, RouteData)

 

Initializes a new instance of the RequestContext class.

Namespace:   System.Web.Routing
Assembly:  System.Web (in System.Web.dll)

new : 
        httpContext:HttpContextBase *
        routeData:RouteData -> RequestContext

Parameters

httpContext
Type: System.Web.HttpContextBase

An object that contains information about the HTTP request.

routeData
Type: System.Web.Routing.RouteData

An object that contains information about the route that matched the current request.

Exception Condition
ArgumentNullException

httpContext or routeData is null.

.NET Framework
Available since 3.5
Return to top
Show: