SPMobileWebContents.Suffix 属性

获取网站类型名称 (或 ID 号),如下所示的 <RenderingTemplate> ID 的部分。

命名空间:  Microsoft.SharePoint.Mobile.WebControls
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Overrides ReadOnly Property Suffix As String
    Get
用法
Dim instance As SPMobileWebContents
Dim value As String

value = instance.Suffix
public override string Suffix { get; }

属性值

类型:System.String
代表 <RenderingTemplate> ID,如下所示的网站和ElementSeparator字符 (默认情况下,下划线) 类型的名称 (或 ID 号) 的部分String

备注

Suffix返回PageType_Contents PageType所在的页面,例如主页、 DeletePage 或 NewForm 的类型。"内容"指示该 <RenderingTemplate> 适用于页上的主要内容部分。

但是,在SharePoint Foundation, SPMobileWebContents是仅在页面类型是主页,因此Suffix始终返回HomePage_Contents时使用。(没有例外情况时Suffix返回DeletePage_Contents。)

不应在您自己的代码中使用SPMobileWebContents

另请参阅

引用

SPMobileWebContents 类

SPMobileWebContents 成员

Microsoft.SharePoint.Mobile.WebControls 命名空间

其他资源

Walkthrough: Customizing the Mobile Home Page