RequestContext 构造函数

定义

初始化 RequestContext 类的新实例。

重载

RequestContext()

初始化 RequestContext 类的新实例。

RequestContext(HttpContextBase, RouteData)

初始化 RequestContext 类的新实例。

RequestContext()

初始化 RequestContext 类的新实例。

public:
 RequestContext();
public RequestContext ();
Public Sub New ()

适用于

RequestContext(HttpContextBase, RouteData)

初始化 RequestContext 类的新实例。

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)

参数

httpContext
HttpContextBase

包含有关 HTTP 请求的信息的对象。

routeData
RouteData

一个对象,其中包含与当前请求匹配的路由的信息。

例外

httpContextrouteDatanull

适用于