SPMobilePageTitle De classe
Specifies the ID of the entry point <RenderingTemplate> that is used when rendering the title of a mobile Web page.
Espaço para nome Microsoft.SharePoint.MobileControls
Conjunto de Módulos (Assembly) Microsoft.SharePoint (em microsoft.sharepoint.dll)
A sintaxe
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level:=AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel:=True)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level:=AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel:=True)> _
Public NotInheritable Class SPMobilePageTitle
Inherits SPMobileComponent
Dim instance As SPMobilePageTitle
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel=true)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel=true)]
public sealed class SPMobilePageTitle : SPMobileComponent
Comentários
Para um visão geral da função dessa classe no sistema de processamento página para dispositivos móveis, consulte Página móvel de processamento do sistema.
An SPMobilePageTitle object appears in the <HeaderTemplate> element of a mobile Web page.It specifies the entry point into the relevant portion of the MobileDefaultTemplates.aspx file located in C:\\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES
.
If the page type is HomePage, the DefaultTemplateName property holds the ID of the <RenderingTemplate>.For all other page types, the TemplateName property holds the ID of the <RenderingTemplate>.
Exemplo
O seguinte trecho de mbllists.aspx, home page o usar como padrão para Web móvel sites nos serviços, mostra uma SPMobilePageTitle em uso.
<!-- Page declaration and other matter omitted -->
<SPMobile:SPMobileForm RunAt="Server" PageType="HomePage" Paginate="true">
<DeviceSpecific>
<Choice>
<HeaderTemplate>
<SPMobile:SPMobileControlContainer RunAt="Server" Weightless="true">
<SPMobile:SPMobilePageTitle RunAt="Server" />
<SPMobile:SPMobileComponent RunAt="Server" Templatename="MobileDefaultSeparator" />
</SPMobile:SPMobileControlContainer>
</HeaderTemplate>
<!-- matter omitted -->
</Choice>
</DeviceSpecific>
<SPMobile:SPMobilePageContents RunAt="Server" />
</SPMobile:SPMobileForm>
Because the page type is a home page, the value of the DefaultTemplateName property, "MobileHomePageTitle", identifies the entry point <RenderingTemplate> in MobileDefaultTemplates.aspx.The following excerpt from that file shows that the MobileHomePageTitle <RenderingTemplate> calls a SPMobileWebTitle control.It, in turn, identifies a more specific <RenderingTemplate> ID: Mobile_WebSiteType_HomePage_Title, where WebSiteType is the value of the Name or ID attribute of the Colaboração Application Markup Language (CAML) <Elemento de modelo (site)> element (of the SharePoint WEBTEMP.XML file) for the current type of Web site.Por exemplo, o valor nome para a definição site blog é "BLOG".Hence, the SPMobileWebTitle object defines the following <RenderingTemplate> ID for a mobile blog home page.
Mobile_BLOG_HomePage_Title
(For a custom site definition, WebSiteType is the value of the ID attribute of the <Elemento de modelo (site)> element, not the Name attribute.)
If the runtime does not find a <RenderingTemplate> with that name in an .aspx file in the ...\CONTROLTEMPLATES
folder, it uses the <RenderingTemplate> named Mobile_Default_HomePage_Title.That <RenderingTemplate>, in turn, calls a SPMobileWeb control which simply renders the title of the Web site.
<SharePoint:RenderingTemplate RunAt="Server" ID="MobileHomePageTitle">
<Template>
<SPMobile:SPMobileWebTitle RunAt="Server" />
</Template>
</SharePoint:RenderingTemplate>
<SharePoint:RenderingTemplate RunAt="Server" ID="Mobile_Default_HomePage_Title">
<Template>
<SPMobile:SPMobileWeb RunAt="Server" />
</Template>
</SharePoint:RenderingTemplate>
Hierarquia de herança
System.Object
System.Web.UI.Control
System.Web.UI.MobileControls.MobileControl
Microsoft.SharePoint.MobileControls.SPMobileComponent
Microsoft.SharePoint.MobileControls.SPMobilePageTitle
Segmento de segurança
Qualquer público estático ( compartilhadas Na Visual Basic) os membros desse tipo são segmento seguro. Os membros de instância não são garantia ser segmento seguro.
Consulte também
Referência
SPMobilePageTitle Membros
Microsoft.SharePoint.MobileControls De espaço para nome