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)
Syntax
IHttpRouteData GetRouteData(
string virtualPathRoot,
HttpRequestMessage request
)
IHttpRouteData^ GetRouteData(
String^ virtualPathRoot,
HttpRequestMessage^ request
)
abstract GetRouteData :
virtualPathRoot:string *
request:HttpRequestMessage -> IHttpRouteData
Function GetRouteData (
virtualPathRoot As String,
request As HttpRequestMessage
) As IHttpRouteData
Parameters
virtualPathRoot
Type: System.StringThe virtual path root.
request
Type: System.Net.Http.HttpRequestMessageThe request.
Return Value
Type: System.Web.Http.Routing.IHttpRouteData
The <see cref="!:RouteData" /> for a route if matches; otherwise null.
See Also
IHttpRoute Interface
System.Web.Http.Routing Namespace
Return to top