FriendlyUrlResolver.GetExtensions Method
.NET Framework 4
Gets the file extensions to use (such as .aspx, .ashx, or .mobile.aspx) while attempting to resolve an HTTP handler from the friendly URL.
Namespace: Microsoft.AspNet.FriendlyUrls.Resolvers
Assembly: Microsoft.AspNet.FriendlyUrls (in Microsoft.AspNet.FriendlyUrls.dll)
Syntax
'Declaration
Public Overridable Function GetExtensions ( _
httpContext As HttpContextBase _
) As IList(Of String)
'Usage
Dim instance As FriendlyUrlResolver
Dim httpContext As HttpContextBase
Dim returnValue As IList(Of String)
returnValue = instance.GetExtensions(httpContext)
public virtual IList<string> GetExtensions(
HttpContextBase httpContext
)
public:
virtual IList<String^>^ GetExtensions(
HttpContextBase^ httpContext
)
abstract GetExtensions :
httpContext:HttpContextBase -> IList<string>
override GetExtensions :
httpContext:HttpContextBase -> IList<string>
public function GetExtensions(
httpContext : HttpContextBase
) : IList<String>
Parameters
- httpContext
Type: System.Web.HttpContextBase
The current HttpContext.
Return Value
Type: System.Collections.Generic.IList<String>
The list of extensions.
Implements
IFriendlyUrlResolver.GetExtensions(HttpContextBase)