Compartilhar via


SPMobileListContents De classe

Specifies the ID of the <RenderingTemplate> that is used when rendering the main content area of a mobile page or form other than the home 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 SPMobileListContents
    Inherits SPMobileListTemplateSelector
Dim instance As SPMobileListContents
[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 SPMobileListContents : SPMobileListTemplateSelector

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.

Fazer não chamar SPMobileListContents na sua codificar.Ele está documentado para fornecer ainda mais compreensão da Web como móvel páginas são processadas e como o processamento pode ser personalizado.

The <RenderingTemplate> ID takes the following form.

Mobile_ListTemplateID_PageType_Contents

The "Mobile" is a prefix that indicates that the <RenderingTemplate> is for SharePoint mobile web sites.

The "Contents" indicates that <RenderingTemplate> should apply to the main content area part of the page.

O PageType é o tipo de página, such as NewForm ou modo de exibição.Ele nunca é homepage.Para o processamento de de conteúdo a principal área Home pages, Windows SharePoint Services 3.0 usa SPMobileWebContents.

The ListTemplateID is the integer value of the Type attribute for the Colaboração Application Markup Language (CAML) <Elemento ListTemplate (modelo de lista)> element or the value of the Name attribute.Por exemplo, o valor tipo para o modelo lista de avisos é 104.Portanto, o objeto SPMobileListContents T:Microsoft.SharePoint.MobileControls.SPMobileListContents para uma página exibição de lista anúncios em um site móvel é o seguinte.

Mobile_104_View_Contents

Como alternativa, ele poderia ser o seguinte.

Mobile_Announcements_View_Contents

O seguinte trecho de arquivo (em C:\\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES) mostra a MobileDefaultTemplates.ascx a marcação que controla o processamento de de conteúdo principal áreas quando o tipo página Modo de exibição.Observe que há um modelo específico para apenas o tipo lista de eventos.All other list types use the Mobile_Default_View_Contents <RenderingTemplate>.

<SharePoint:RenderingTemplate RunAt="Server" ID="MobileViewContents">
  <Template>
    <SPMobile:SPMobileListContents RunAt="Server" />
  </Template>
</SharePoint:RenderingTemplate>
<SharePoint:RenderingTemplate RunAt="Server" 
  ID="Mobile_Default_View_Contents">
  <Template>
    <SPMobile:SPMobileControlContainer RunAt="Server">
      <SPMobile:SPMobileComponent RunAt="Server" 
        Templatename="MobileViewPicker" />
      <SPMobile:SPMobileComponent RunAt="Server" 
        Templatename="MobileDefaultSeparator" />
    </SPMobile:SPMobileControlContainer>
    <SPMobile:SPMobileListItemIterator RunAt="Server" 
      ListItemSeparatorTemplatename="MobileListItemSeparator" />
  </Template>
</SharePoint:RenderingTemplate>
<SharePoint:RenderingTemplate RunAt="Server" 
  ID="Mobile_Events_View_Contents">
  <Template>
    <SPMobile:SPMobileControlContainer RunAt="Server">
      <SPMobile:SPMobileComponent RunAt="Server" 
        Templatename="MobileViewPicker" />
      <SPMobile:SPMobileComponent RunAt="Server" 
        Templatename="MobileDefaultSeparator" />
    </SPMobile:SPMobileControlContainer>
    <SPMobile:SPMobileEventsListItemIterator RunAt="Server" 
      ListItemSeparatorTemplatename="MobileListItemSeparator" />
  </Template>
</SharePoint:RenderingTemplate> 

Fazer não alteração MobileDefaultTemplates.ascx.For any combination of page type (other than the home page or a custom page) and list type that does not already have a <RenderingTemplate> defined in MobileDefaultTemplates.ascx, you can override the Mobile_Default_PageType_Contents <RenderingTemplate> with the following steps.Para de conteúdo principal área processamento em personalizado tipos página, consulte SPMobileWebContents.)Para de conteúdo principal área processamento em personalizado tipos página, consulte SPMobilePageContents.)

Create a custom .aspx file in the ...\CONTROLTEMPLATES folder that contains a <RenderingTemplate> with the name Mobile_ListTemplateID_PageType_Contents.Specify the Type or Name of a <Elemento ListTemplate (modelo de lista)> in place of ListTemplateID.Também especificar uma determinada PageType .O segundo deve ser o seguinte: "DeletePage", "DispForm", "EditForm", "NewForm," ou "View".Your custom <RenderingTemplate> then calls a combination of controls different from those used by Mobile_Default_PageType_Contents to render the main content area.(Caso contrário, a personalização seriam inúteis.)

The runtime automatically gives preference to your custom <RenderingTemplate> over the Mobile_Default_PageType_Contents <RenderingTemplate> in MobileDefaultTemplates.ascx.

Para obter mais informações sobre personalização página da Web de conteúdo principal áreas para interno Windows SharePoint Services 3.0 página tipos diferentes de home pages, consulte Walkthrough: Personalizar uma página de exibição de lista móvel.

Hierarquia de herança

System.Object
   System.Web.UI.Control
     System.Web.UI.MobileControls.MobileControl
       Microsoft.SharePoint.MobileControls.SPMobileComponent
         Microsoft.SharePoint.MobileControls.SPMobileTemplateSelector
           Microsoft.SharePoint.MobileControls.SPMobileListTemplateSelector
            Microsoft.SharePoint.MobileControls.SPMobileListContents

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

Tarefas

Walkthrough: Personalizar uma página de exibição de lista móvel

Referência

SPMobileListContents Membros
Microsoft.SharePoint.MobileControls De espaço para nome
SPMoblePageContents

Conceitos

Página móvel de processamento do sistema