อ่านในภาษาอังกฤษ แก้ไข

แชร์ผ่าน


RequestContext Constructors

Definition

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 ();

Applies to

.NET Framework 4.8.1 และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
.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

RequestContext(HttpContextBase, RouteData)

Initializes a new instance of the RequestContext class.

public RequestContext (System.Web.HttpContextBase httpContext, System.Web.Routing.RouteData 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 Framework 4.8.1 และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
.NET Framework 3.5, 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