SPMobilePageTitle クラス (Microsoft.SharePoint.MobileControls)
モバイル Web ページのタイトルをレンダリングするときに使用されるエントリ ポイント <RenderingTemplate> の ID を指定します。
名前空間: Microsoft.SharePoint.MobileControls
アセンブリ: Microsoft.SharePoint (microsoft.sharepoint.dll 内)
構文
'宣言
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level:=AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel:=True)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level:=AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel:=True)> _
Public NotInheritable Class SPMobilePageTitle
Inherits SPMobileComponent
'使用
Dim instance As SPMobilePageTitle
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel=true)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel=true)]
public sealed class SPMobilePageTitle : SPMobileComponent
備考
モバイル デバイスのページ レンダリング システムにおけるこの役割の概要については、「モバイル ページのレンダリング システム」を参照してください。
SPMobilePageTitle オブジェクトが、モバイル Web ページの <HeaderTemplate> 要素に表示されます。これは、C:\\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES
にある MobileDefaultTemplates.aspx ファイルの関連する部分へのエントリ ポイントを指定します。
ページの種類が HomePage である場合、DefaultTemplateName プロパティには <RenderingTemplate> の ID が指定されます。その他すべてのページの種類の場合は、TemplateName プロパティには <RenderingTemplate> の ID が指定されます。
例
次の例は、Windows SharePoint Services のモバイル Web サイトの既定のホーム ページ mbllists.aspx からの抜粋で、使用されている SPMobilePageTitle を示しています。
<!-- 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>
ページの種類がホーム ページなので、DefaultTemplateName プロパティの値である "MobileHomePageTitle" は、MobileDefaultTemplates.aspx 内のエントリ ポイント <RenderingTemplate> を指定します。次の例はこのファイルからの抜粋で、MobileHomePageTitle <RenderingTemplate> が SPMobileWebTitle コントロールを呼び出すことを示しています。次に、より明確な <RenderingTemplate> ID: Mobile_WebSiteType_HomePage_Title を指定します。WebSiteType は、Web サイトの現在の種類を示す (SharePoint WEBTEMP.XML ファイルの) Collaborative Application Markup Language (CAML) <Template 要素 (サイト)> 要素の Name または ID 属性の値です。たとえば、ブログ サイト定義の Name の値は "BLOG" なので、SPMobileWebTitle オブジェクトでは、モバイル ブログ ホーム ページに次の <RenderingTemplate> ID を定義します。
Mobile_BLOG_HomePage_Title
(カスタム サイト定義の場合、WebSiteType は <Template 要素 (サイト)> 要素の Name 属性ではなく ID 属性の値です。)
...\CONTROLTEMPLATES
フォルダ内の .aspx ファイルにその名前を持つ <RenderingTemplate> が存在しない場合、Mobile_Default_HomePage_Title という名前の <RenderingTemplate> が使用されます。次に、その <RenderingTemplate> が Web サイトのタイトルをレンダリングだけの SPMobileWeb コントロールを呼び出します。
<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>
継承階層
System.Object
System.Web.UI.Control
System.Web.UI.MobileControls.MobileControl
Microsoft.SharePoint.MobileControls.SPMobileComponent
Microsoft.SharePoint.MobileControls.SPMobilePageTitle
スレッドの安全性
この型のパブリックで静的な (Visual Basic では Shared) すべてのメンバは、スレッド セーフです。インスタンス メンバは、スレッド セーフであるとは保証されません。
関連項目
参照
SPMobilePageTitle メンバ
Microsoft.SharePoint.MobileControls 名前空間