Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft