Share via


SPMobileListTitle クラス (Microsoft.SharePoint.MobileControls)

ホーム ページ以外のモバイル ページまたはフォームのヘッダー領域をレンダリングするときに使用される <RenderingTemplate> の ID を指定します。

名前空間: Microsoft.SharePoint.MobileControls
アセンブリ: Microsoft.SharePoint (microsoft.sharepoint.dll 内)

構文

'宣言
<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 SPMobileListTitle
    Inherits SPMobileListTemplateSelector
'使用
Dim instance As SPMobileListTitle
[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 SPMobileListTitle : SPMobileListTemplateSelector

備考

モバイル デバイスのページ レンダリング システムにおけるこの役割の概要については、「モバイル ページのレンダリング システム」を参照してください。

コードで SPMobileListTitle を呼び出さないでください。これは、モバイル Web ページのレンダリング方法およびレンダリングのカスタマイズ方法についての理解を深めるために文書化されているものです。

<RenderingTemplate> ID のフォームは次のとおりです。

Mobile_ListTemplateID_PageType_Title

"Mobile" は、<RenderingTemplate> がモバイル Web サイト用であることを示すプレフィックスです。

"Title" は、<RenderingTemplate> がページのヘッダー部分に適用されることを示します。

PageType は、View や NewForm などのページの種類です。HomePage になることはありません。Windows SharePoint Services 3.0 では、ホーム ページのタイトル領域のレンダリングには SPMobileWebTitle が使用されます。

ListTemplateID は、Collaborative Application Markup Language (CAML) <ListTemplate 要素 (リスト テンプレート)> 要素の Type 属性の整数値または Name 属性の値です。たとえば、お知らせリスト テンプレートの Type 値は 104 なので、モバイル Web サイトのお知らせリスト ビュー ページの SPMobileListTitle オブジェクトは次のようになります。

Mobile_104_View_Title

または

Mobile_Announcements_View_Title

Windows SharePoint Services 3.0 をインストールすると、最初は特定のリストの種類のモバイル ページ ヘッダー用の <RenderingTemplate> は定義されていません。組み込みの種類についても同様です。すべてのページで Mobile_Default_PageType_Title <RenderingTemplate> が使用されます。たとえば、次の例は、C:\\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES にある MobileDefaultTemplates.ascx ファイルから抜粋したものです。ここでは、Web サイトの種類にかかわらず、ページの種類が View であれば 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>

MobileDefaultTemplates.ascx は変更しないでください。特定の Web サイトの種類の特定のページの種類 (ホーム ページまたはカスタム ページ以外) でヘッダーのレンダリングをカスタマイズするには、...\CONTROLTEMPLATES フォルダに Mobile_ListTemplateID_PageType_Title という名前の <RenderingTemplate> を含むカスタムの .aspx ファイルを作成します。ListTemplateID の部分に <ListTemplate 要素 (リスト テンプレート)> の ID (または名前) を指定します。また、特定の PageType も指定します。PageType は、"DeletePage"、"DispForm"、"EditForm"、"NewForm"、"View" のいずれかである必要があります。その後、カスタム <RenderingTemplate> が、SPMobileListTitleControl の代わりのものを呼び出してヘッダーをレンダリングします。

ランタイムは MobileDefaultTemplates.ascx で、Mobile_Default_PageType_Title <RenderingTemplate> よりもカスタムの <RenderingTemplate> を自動的に優先します。

ホーム ページ以外の組み込み Windows SharePoint Services 3.0 ページの種類で Web ページ タイトルをカスタマイズする方法については、「[ウォークスルー] モバイル リスト ビュー ページをカスタマイズする」を参照してください。

カスタムのページの種類でタイトルをレンダリングする方法については、「SPMobilePageTitle」を参照してください。

継承階層

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.SPMobileListTitle

スレッドの安全性

この型のパブリックで静的な (Visual Basic では Shared) すべてのメンバは、スレッド セーフです。インスタンス メンバは、スレッド セーフであるとは保証されません。

関連項目

参照

SPMobileListTitle メンバ
Microsoft.SharePoint.MobileControls 名前空間
SPMoblePageTitle

その他のリソース

モバイル ページのレンダリング システム
[ウォークスルー] モバイル リスト ビュー ページをカスタマイズする