WebFormsFriendlyUrlResolver.TrySetMobileMasterPage Method
.NET Framework 4
Attempts to set the MasterPageFile property for the given page to a mobile specific master page.
Namespace: Microsoft.AspNet.FriendlyUrls.Resolvers
Assembly: Microsoft.AspNet.FriendlyUrls (in Microsoft.AspNet.FriendlyUrls.dll)
Syntax
'Declaration
Protected Overridable Function TrySetMobileMasterPage ( _
httpContext As HttpContextBase, _
page As Page, _
mobileSuffix As String _
) As Boolean
'Usage
Dim httpContext As HttpContextBase
Dim page As Page
Dim mobileSuffix As String
Dim returnValue As Boolean
returnValue = Me.TrySetMobileMasterPage(httpContext, _
page, mobileSuffix)
protected virtual bool TrySetMobileMasterPage(
HttpContextBase httpContext,
Page page,
string mobileSuffix
)
protected:
virtual bool TrySetMobileMasterPage(
HttpContextBase^ httpContext,
Page^ page,
String^ mobileSuffix
)
abstract TrySetMobileMasterPage :
httpContext:HttpContextBase *
page:Page *
mobileSuffix:string -> bool
override TrySetMobileMasterPage :
httpContext:HttpContextBase *
page:Page *
mobileSuffix:string -> bool
protected function TrySetMobileMasterPage(
httpContext : HttpContextBase,
page : Page,
mobileSuffix : String
) : boolean
Parameters
- httpContext
Type: System.Web.HttpContextBase
The HTTP context.
- page
Type: System.Web.UI.Page
The page.
- mobileSuffix
Type: System.String
Return Value
Type: System.Boolean
A boolean value indicating whether the master page was set.