SPMobileListTitle 类
指定呈现移动页或主页之外的窗体的页眉区域时使用的 <RenderingTemplate> ID。
继承层次结构
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
Microsoft.SharePoint.Mobile.WebControls.SPMobileComponent
Microsoft.SharePoint.Mobile.WebControls.SPMobileTemplateSelector
Microsoft.SharePoint.Mobile.WebControls.SPMobileListTemplateSelector
Microsoft.SharePoint.Mobile.WebControls.SPMobileListTitle
命名空间: Microsoft.SharePoint.Mobile.WebControls
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class SPMobileListTitle _
Inherits SPMobileListTemplateSelector
用法
Dim instance As SPMobileListTitle
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class SPMobileListTitle : SPMobileListTemplateSelector
备注
For an overview of the role of this class in the page rendering system for mobile devices, see Mobile Page Rendering System.
不要在代码中调用SPMobileListTitle 。记录提供呈现进一步了解如何移动网页和如何自定义呈现方式。
<RenderingTemplate> ID 采用以下形式。
IntendedListUse_ListTemplateID_PageType_ Title
The placeholders IntendedListUse, ListTemplateID, and PageType are defined in Mobile Page Rendering System.
"Title"指示该 <RenderingTemplate> 应应用于的页面页眉部分。
因此,移动网站上的通知列表视图页的SPMobileListTitle对象是以下。
Mobile_104_View_Title
此外,可能是以下。
Mobile_Announcements_View_Title
情况下,安装SharePoint Foundation时,最初没有定义 <RenderingTemplate> (适用于移动的页面页眉) 对于任何特定列表类型,甚至是内置的类型。所有页都使用 Mobile_Default_PageType_Title <RenderingTemplate>。例如,如以下示例摘自 MobileDefaultTemplates.ascx 文件 (在%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\TEMPLATE\CONTROLTEMPLATES) 所示,页面类型时是视图中,不会网站类型使用 Mobile_Default_View_Title <RenderingTemplate>。(Mobile_Default_View_Title 模板将调用SPMobileListTitleControl呈现标题)。
<SharePoint:RenderingTemplate RunAt="Server" ID="MobileViewTitle">
<Template>
<SPMobile:SPMobileListTitle RunAt="Server" />
</Template>
</SharePoint:RenderingTemplate>
<SharePoint:RenderingTemplate RunAt="Server"
ID="Mobile_Default_View_Title">
<Template>
<SPMobile:SPMobileListTitleControl RunAt="Server" />
</Template>
</SharePoint:RenderingTemplate>
Do not change MobileDefaultTemplates.ascx or GbwMobileDefaultTemplates.ascx. To customize the rendering of the header for a particular page type of a particular Web site type, create a custom .ascx file in the ...\CONTROLTEMPLATES folder that contains a <RenderingTemplate> with the name Mobile_ListTemplateID_PageType_Title. Specify the ID (or Name) of a <ListTemplate> in place of ListTemplateID. Also specify a particular PageType. The latter must be one of the following: "DeletePage", "DispForm", "EditForm", "NewForm", or "View". Your custom <RenderingTemplate> then calls an alternative to SPMobileListTitleControl to render the header.
运行时自动为首选项设置为您的自定义 <RenderingTemplate> 通过 Mobile_Default_PageType_Title <RenderingTemplate> MobileDefaultTemplates.ascx或GbwMobileDefaultTemplates.ascx中提供了。
For more about customizing Web page titles for built-in SharePoint Foundation page types other than home pages, see Walkthrough: Customizing a Mobile List View Page.
在自定义页面类型的标题呈现,请参阅SPMobilePageTitle。
线程安全性
该类型的任何公共 静态 (已共享 在 Visual Basic 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。
另请参阅
引用
Microsoft.SharePoint.Mobile.WebControls 命名空间
SPMoblePageTitle