Partager via


HttpRoute.GetRouteData Method (String, HttpRequestMessage)

 

Determines whether this route is a match for the incoming request by looking up the HttpRouteData for the route.

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

Syntax

public virtual IHttpRouteData GetRouteData(
    string virtualPathRoot,
    HttpRequestMessage request
)
public:
virtual IHttpRouteData^ GetRouteData(
    String^ virtualPathRoot,
    HttpRequestMessage^ request
)
abstract GetRouteData : 
        virtualPathRoot:string *
        request:HttpRequestMessage -> IHttpRouteData
override GetRouteData : 
        virtualPathRoot:string *
        request:HttpRequestMessage -> IHttpRouteData
Public Overridable Function GetRouteData (
    virtualPathRoot As String,
    request As HttpRequestMessage
) As IHttpRouteData

Parameters

Return Value

Type: System.Web.Http.Routing.IHttpRouteData

The HttpRouteData for a route if matches; otherwise null.

Implements

IHttpRoute.GetRouteData(String, HttpRequestMessage)

See Also

HttpRoute Class
System.Web.Http.Routing Namespace

Return to top