HttpRouteCollection.GetRouteData Method
Gets the route data for a specified HTTP request.
Namespace: System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Overridable Function GetRouteData ( _
request As HttpRequestMessage _
) As IHttpRouteData
'Usage
Dim instance As HttpRouteCollection
Dim request As HttpRequestMessage
Dim returnValue As IHttpRouteData
returnValue = instance.GetRouteData(request)
public virtual IHttpRouteData GetRouteData(
HttpRequestMessage request
)
public:
virtual IHttpRouteData^ GetRouteData(
HttpRequestMessage^ request
)
abstract GetRouteData :
request:HttpRequestMessage -> IHttpRouteData
override GetRouteData :
request:HttpRequestMessage -> IHttpRouteData
public function GetRouteData(
request : HttpRequestMessage
) : IHttpRouteData
Parameters
- request
Type: HttpRequestMessage
The HTTP request.
Return Value
Type: System.Web.Http.Routing.IHttpRouteData
AnIHttpRouteData instance that represents the route data.