Partager via


HttpRoute.GetVirtualPath Method (HttpRequestMessage, IDictionary<String, Object>)

 

Attempts to generate a URI that represents the values passed in based on current values from the HttpRouteData and new values using the specified HttpRoute.

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

Syntax

public virtual IHttpVirtualPathData GetVirtualPath(
    HttpRequestMessage request,
    IDictionary<string, object> values
)
public:
virtual IHttpVirtualPathData^ GetVirtualPath(
    HttpRequestMessage^ request,
    IDictionary<String^, Object^>^ values
)
abstract GetVirtualPath : 
        request:HttpRequestMessage *
        values:IDictionary<string, Object> -> IHttpVirtualPathData
override GetVirtualPath : 
        request:HttpRequestMessage *
        values:IDictionary<string, Object> -> IHttpVirtualPathData
Public Overridable Function GetVirtualPath (
    request As HttpRequestMessage,
    values As IDictionary(Of String, Object)
) As IHttpVirtualPathData

Parameters

Return Value

Type: System.Web.Http.Routing.IHttpVirtualPathData

A HttpVirtualPathData instance or null if URI cannot be generated.

Implements

IHttpRoute.GetVirtualPath(HttpRequestMessage, IDictionary<String, Object>)

See Also

HttpRoute Class
System.Web.Http.Routing Namespace

Return to top