SPMobilePageNavigation class
Especifica a ID do ponto de entrada <RenderingTemplate> é usado quando a área de navegação (rodapé) de uma página da Web móvel de renderização.
Inheritance hierarchy
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
Microsoft.SharePoint.Mobile.WebControls.SPMobileComponent
Microsoft.SharePoint.Mobile.WebControls.SPMobilePageNavigation
Namespace: Microsoft.SharePoint.Mobile.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaração
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class SPMobilePageNavigation _
Inherits SPMobileComponent
'Uso
Dim instance As SPMobilePageNavigation
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class SPMobilePageNavigation : SPMobileComponent
Comentários
For an overview of the role of this class in the page rendering system for mobile devices, see Mobile Page Rendering System.
Um objeto SPMobilePageNavigation é exibida no elemento <FooterTemplate> de uma página da Web móvel. Especifica o ponto de entrada a parte relevante do arquivo MobileDefaultTemplates.ascx localizado em %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\ TEMPLATE\CONTROLTEMPLATES.
Se o tipo de página é a home page, a propriedade DefaultTemplateName contém a ID do <RenderingTemplate>. Para todos os outros tipos de página, a propriedade TemplateName contém a ID do <RenderingTemplate>.
Examples
O seguinte trecho de mbllists.aspx, a página de lista de listas para sites da Web móveis, mostra um objeto SPMobilePageNavigation em uso.
<!-- Page declaration and other matter omitted -->
<SPMobile:SPMobileForm RunAt="Server" PageType="HomePage" Paginate="true">
<DeviceSpecific>
<Choice>
<!-- matter omitted -->
<FooterTemplate>
<SPMobile:SPMobileControlContainer RunAt="Server" Weightless="true">
<SPMobile:SPMobileComponent RunAt="Server" Templatename="MobilePaginateNavigation" />
<SPMobile:SPMobileComponent RunAt="Server" TemplateName="MobileDefaultSeparator" />
<SPMobile:SPMobilePageNavigation RunAt="Server" />
</SPMobile:SPMobileControlContainer>
</FooterTemplate>
</Choice>
</DeviceSpecific>
<SPMobile:SPMobilePageContents RunAt="Server" />
</SPMobile:SPMobileForm>
Porque o tipo de página é uma home page, o valor da propriedade DefaultTemplateName , "MobileHomePageNavigation" identifica o ponto de entrada em MobileDefaultTemplates.ascx<RenderingTemplate>. O seguinte trecho desse arquivo mostra que o MobileHomePageNavigation <RenderingTemplate> chama um controle SPMobileWebNavigation .
<SharePoint:RenderingTemplate RunAt="Server" id="MobileHomePageNavigation">
<Template>
<SPMobile:SPMobileWebNavigation RunAt="Server" />
</Template>
</SharePoint:RenderingTemplate>
The SPMobileWebNavigation control, in turn, simply identifies a more specific <RenderingTemplate> ID: IntendedPageUse_WebSiteType_HomePage_Navigation, where the placeholders IntendedPageUse and WebSiteType are defined as in Mobile Page Rendering System.
Se nenhum <RenderingTemplate> com uma ID de correspondência existir em algum arquivo. ascx na pasta ...\CONTROLTEMPLATES , ele usará o <RenderingTemplate> denominado IntendedPageUse_Default_HomePage_Navigation.
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.
Ver também
Referência
SPMobilePageNavigation members
Microsoft.SharePoint.Mobile.WebControls namespace