Share via


IFriendlyUrlResolver.GetExtensions Method

.NET Framework 4

Returns a list of file extensions that the Friendly URLs system will try to resolve for the current request. For example, if the current request is for "~/example" and the GetExtensions method returns [ ".mobile.aspx", ".aspx", ".en-us.aspx" ], then the Friendly URLs system will attempt to match the current request to the files "~/example.mobile.aspx", "~/example.aspx", and "~/example.en-us.aspx", returning the first match.

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

Syntax

'Declaration
Function GetExtensions ( _
    httpContext As HttpContextBase _
) As IList(Of String)
'Usage
Dim instance As IFriendlyUrlResolver 
Dim httpContext As HttpContextBase 
Dim returnValue As IList(Of String)

returnValue = instance.GetExtensions(httpContext)
IList<string> GetExtensions(
    HttpContextBase httpContext
)
IList<String^>^ GetExtensions(
    HttpContextBase^ httpContext
)
abstract GetExtensions : 
        httpContext:HttpContextBase -> IList<string> 
function GetExtensions(
    httpContext : HttpContextBase
) : IList<String>

Parameters

Return Value

Type: System.Collections.Generic.IList<String>
A list of extensions that the system should try to resolve.

See Also

Reference

IFriendlyUrlResolver Interface

Microsoft.AspNet.FriendlyUrls.Resolvers Namespace