SPMobileWebTemplateSelector Class

Selects, based on the type of the current site, a RenderingTemplate template to either render a section (Header, Contents, or Footer) of a mobile home page or redirect the mobile device to a home page.

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.MobileControls.MobileControl
      Microsoft.SharePoint.MobileControls.SPMobileComponent
        Microsoft.SharePoint.MobileControls.SPMobileTemplateSelector
          Microsoft.SharePoint.MobileControls.SPMobileWebTemplateSelector
            Microsoft.SharePoint.MobileControls.SPMobileWebContents
            Microsoft.SharePoint.MobileControls.SPMobileWebNavigation
            Microsoft.SharePoint.MobileControls.SPMobileWebTitle
            Microsoft.SharePoint.MobileControls.SPMobileWebUrlRedirect

Namespace:  Microsoft.SharePoint.MobileControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public Class SPMobileWebTemplateSelector _
    Inherits SPMobileTemplateSelector
'Usage
Dim instance As SPMobileWebTemplateSelector
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class SPMobileWebTemplateSelector : SPMobileTemplateSelector

Remarks

For an overview of the role of the classes that derive from SPMobileWebTemplateSelector in the page rendering system for mobile devices, see Mobile Page Rendering System.

This class and its derived classes cannot be used to render sections of list view or form pages. To render sections of those pages, use classes derived from SPMobileListTemplateSelector.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPMobileWebTemplateSelector Members

Microsoft.SharePoint.MobileControls Namespace

Other Resources

Mobile Page Rendering System