RequestContext Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the RequestContext class.
Overloads
RequestContext() |
Initializes a new instance of the RequestContext class. |
RequestContext(HttpContextBase, RouteData) |
Initializes a new instance of the RequestContext class. |
RequestContext()
Initializes a new instance of the RequestContext class.
public:
RequestContext();
public RequestContext ();
Public Sub New ()
Applies to
RequestContext(HttpContextBase, RouteData)
Initializes a new instance of the RequestContext class.
public:
RequestContext(System::Web::HttpContextBase ^ httpContext, System::Web::Routing::RouteData ^ routeData);
public RequestContext (System.Web.HttpContextBase httpContext, System.Web.Routing.RouteData routeData);
new System.Web.Routing.RequestContext : System.Web.HttpContextBase * System.Web.Routing.RouteData -> System.Web.Routing.RequestContext
Public Sub New (httpContext As HttpContextBase, routeData As RouteData)
Parameters
- httpContext
- HttpContextBase
An object that contains information about the HTTP request.
- routeData
- RouteData
An object that contains information about the route that matched the current request.
Exceptions
httpContext
or routeData
is null
.
Applies to
.NET