RouteCollection.GetRouteData Method (HttpContextBase)
.NET Framework (current version)
Returns information about the route in the collection that matches the specified values.
Assembly: System.Web (in System.Web.dll)
Parameters
- httpContext
-
Type:
System.Web.HttpContextBase
An object that encapsulates information about the HTTP request.
Return Value
Type: System.Web.Routing.RouteDataAn 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
Available since 3.5
Show: