HttpRouteCollection.GetVirtualPath Method
Gets a virtual path.
Namespace: System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Overridable Function GetVirtualPath ( _
request As HttpRequestMessage, _
name As String, _
values As IDictionary(Of String, Object) _
) As IHttpVirtualPathData
'Usage
Dim instance As HttpRouteCollection
Dim request As HttpRequestMessage
Dim name As String
Dim values As IDictionary(Of String, Object)
Dim returnValue As IHttpVirtualPathData
returnValue = instance.GetVirtualPath(request, _
name, values)
public virtual IHttpVirtualPathData GetVirtualPath(
HttpRequestMessage request,
string name,
IDictionary<string, Object> values
)
public:
virtual IHttpVirtualPathData^ GetVirtualPath(
HttpRequestMessage^ request,
String^ name,
IDictionary<String^, Object^>^ values
)
abstract GetVirtualPath :
request:HttpRequestMessage *
name:string *
values:IDictionary<string, Object> -> IHttpVirtualPathData
override GetVirtualPath :
request:HttpRequestMessage *
name:string *
values:IDictionary<string, Object> -> IHttpVirtualPathData
public function GetVirtualPath(
request : HttpRequestMessage,
name : String,
values : IDictionary<String, Object>
) : IHttpVirtualPathData
Parameters
request
Type: HttpRequestMessageThe HTTP request.
name
Type: System.StringThe route name.
values
Type: System.Collections.Generic.IDictionary<String, Object>The route values.
Return Value
Type: System.Web.Http.Routing.IHttpVirtualPathData
An IHttpVirtualPathData instance that represents the virtual path.