WebFormsFriendlyUrlResolver.IsMobileView Method
.NET Framework 4
Determines if the current friendly URL was resolved to a mobile view based on the client browser and/or overrides.
Namespace: Microsoft.AspNet.FriendlyUrls.Resolvers
Assembly: Microsoft.AspNet.FriendlyUrls (in Microsoft.AspNet.FriendlyUrls.dll)
Syntax
'Declaration
Public Shared Function IsMobileView ( _
httpContext As HttpContextBase _
) As Boolean
'Usage
Dim httpContext As HttpContextBase
Dim returnValue As Boolean
returnValue = WebFormsFriendlyUrlResolver.IsMobileView(httpContext)
public static bool IsMobileView(
HttpContextBase httpContext
)
public:
static bool IsMobileView(
HttpContextBase^ httpContext
)
static member IsMobileView :
httpContext:HttpContextBase -> bool
public static function IsMobileView(
httpContext : HttpContextBase
) : boolean
Parameters
- httpContext
Type: System.Web.HttpContextBase
The page.
Return Value
Type: System.Boolean
Whether the current view is a mobile view.