Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IHttpRoute.GetRouteData Method (String, HttpRequestMessage)


Determine whether this route is a match for the incoming request by looking up the <see cref="!:IRouteData" /> for the route.

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

IHttpRouteData GetRouteData(
	string virtualPathRoot,
	HttpRequestMessage request


Type: System.String

The virtual path root.

Type: System.Net.Http.HttpRequestMessage

The request.

Return Value

Type: System.Web.Http.Routing.IHttpRouteData

The <see cref="!:RouteData" /> for a route if matches; otherwise null.

Return to top
© 2015 Microsoft