获取具有,其第二段中的当前网站的网站定义的 ID 号 ( RenderingTemplate模板) 的 ID。
命名空间: Microsoft.SharePoint.Mobile.WebControls
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Overridable ReadOnly Property WebIdTemplate As String
Get
用法
Dim instance As SPMobileWebTemplateSelector
Dim value As String
value = instance.WebIdTemplate
public virtual string WebIdTemplate { get; }
属性值
类型:System.String
A String that represents the ID of a RenderingTemplate template that uses, in its second segment, the value of the ID attribute of the 协作应用程序标记语言 (CAML) Template element (of the SharePoint WEBTEMP.XML file) for the current type of Web site. For example, the ID value for the blog site definition is "9".
备注
RenderingTemplate ID 由SPMobileWebTemplateSelector对象构建的第二段的可能值为"1"(对于 STS 类型中)、"9"(对于博客类型中)、"15"(对于 SGS 类型中) 或任何自定义网站定义 (应始终为大于 10000 的值) 的 ID。从移动设备访问不是支持在SharePoint Foundation MPS、 TENANTADMIN、 CENTRALADMIN 或旧式 WIKI 网站。
WebTypeTemplate中标识的一个不存在的情况下,才使用WebIdTemplate中标识的模板。
另请参阅
引用
SPMobileWebTemplateSelector 成员
Microsoft.SharePoint.Mobile.WebControls 命名空间