RouteCollection.GetRouteData Method (HttpContextBase)

 

Returns information about the route in the collection that matches the specified values.

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

public RouteData GetRouteData(
	HttpContextBase httpContext
)

Parameters

httpContext
Type: System.Web.HttpContextBase

An object that encapsulates information about the HTTP request.

Return Value

Type: System.Web.Routing.RouteData

An object that contains the values from the route definition.

Exception Condition
ArgumentNullException

context is null.

ArgumentException

The Request property of the object in the context parameter is null.

.NET Framework
Available since 3.5
Return to top
Show: