HttpRequestExtensions.GetFriendlyUrlSegments Method (HttpRequest)

.NET Framework 4.5

Returns the URL segments left over after Friendly URLs mapped this request to a file.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetFriendlyUrlSegments ( _
    httpRequest As HttpRequest _
) As IList(Of String)
'Usage
Dim httpRequest As HttpRequest 
Dim returnValue As IList(Of String)

returnValue = httpRequest.GetFriendlyUrlSegments()
public static IList<string> GetFriendlyUrlSegments(
    this HttpRequest httpRequest
)
[ExtensionAttribute]
public:
static IList<String^>^ GetFriendlyUrlSegments(
    HttpRequest^ httpRequest
)
static member GetFriendlyUrlSegments : 
        httpRequest:HttpRequest -> IList<string> 
public static function GetFriendlyUrlSegments(
    httpRequest : HttpRequest
) : IList<String>

Parameters

Return Value

Type: System.Collections.Generic.IList<String>
The URL segments.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HttpRequest. 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.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.111).

See Also

Reference

HttpRequestExtensions Class

GetFriendlyUrlSegments Overload

Microsoft.AspNet.FriendlyUrls Namespace