RouteCollection.GetRouteData(HttpContextBase) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns information about the route in the collection that matches the specified values.
public:
System::Web::Routing::RouteData ^ GetRouteData(System::Web::HttpContextBase ^ httpContext);
public System.Web.Routing.RouteData GetRouteData (System.Web.HttpContextBase httpContext);
member this.GetRouteData : System.Web.HttpContextBase -> System.Web.Routing.RouteData
Public Function GetRouteData (httpContext As HttpContextBase) As RouteData
Parameters
- httpContext
- HttpContextBase
An object that encapsulates information about the HTTP request.
Returns
An object that contains the values from the route definition.
Exceptions
context
is null
.
The Request property of the object in the context
parameter is null
.
Applies to
See also
Samarbeid med oss på GitHub
Du finner kilden for dette innholdet på GitHub. Der du også kan opprette og se gjennom problemer og pull-forespørsler. Hvis du vil ha mer informasjon, kan du se vår bidragsyterveiledning.