DynamicDataRouteHandler.GetRequestContext Method (HttpContext)

 

Returns the RequestContext instance for the current Web request.

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

public static RequestContext GetRequestContext(
	HttpContext httpContext
)

Parameters

httpContext
Type: System.Web.HttpContext

The context information that is associated with the Web request.

Return Value

Type: System.Web.Routing.RequestContext

The request context for the Web request.

Exception Condition
ArgumentNullException

httpContext is null.

A new context is created if it is required. This can occur if the current request is not a Dynamic Data request.

.NET Framework
Available since 3.5
Return to top
Show: