Share via


HttpRequestExtensions.GetFriendlyUrlFileVirtualPath Method (HttpRequestBase)

.NET Framework 4

Returns the virtual path of the file Friendly URLs mapped this request to.

Namespace:  Microsoft.AspNet.FriendlyUrls
Assembly:  Microsoft.AspNet.FriendlyUrls (in Microsoft.AspNet.FriendlyUrls.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetFriendlyUrlFileVirtualPath ( _
    httpRequest As HttpRequestBase _
) As String
'Usage
Dim httpRequest As HttpRequestBase 
Dim returnValue As String 

returnValue = httpRequest.GetFriendlyUrlFileVirtualPath()
public static string GetFriendlyUrlFileVirtualPath(
    this HttpRequestBase httpRequest
)
[ExtensionAttribute]
public:
static String^ GetFriendlyUrlFileVirtualPath(
    HttpRequestBase^ httpRequest
)
static member GetFriendlyUrlFileVirtualPath : 
        httpRequest:HttpRequestBase -> string
public static function GetFriendlyUrlFileVirtualPath(
    httpRequest : HttpRequestBase
) : String

Parameters

Return Value

Type: System.String
The file virtual path.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HttpRequestBase. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.100) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.100).

See Also

Reference

HttpRequestExtensions Class

GetFriendlyUrlFileVirtualPath Overload

Microsoft.AspNet.FriendlyUrls Namespace