Поделиться через


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

<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class SPMobileWebTemplateSelector _
    Inherits SPMobileTemplateSelector

Dim instance As SPMobileWebTemplateSelector
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
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