SPMobileWebTemplateSelector.TemplateName 属性

获取用来呈现主页的部分或删除页上,如果位于%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\TEMPLATE\CONTROLTEMPLATES 中的任何.ascx 文件RenderingTemplate模板的 ID。

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

语法

声明
Public Overrides ReadOnly Property TemplateName As String
    Get
用法
Dim instance As SPMobileWebTemplateSelector
Dim value As String

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

属性值

类型:System.String
代表在%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\TEMPLATE\CONTROLTEMPLATES 中查找SPMobileWebTemplateSelectorRenderingTemplate模板的 ID String

备注

运行库会查找第一个WebTypeTemplate中标识的模板。如果没有与该模板 ID 位于%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\TEMPLATE\CONTROLTEMPLATES 中的任何.ascx 文件,它查找由WebIdTemplate标识的模板。如果既不存在,则使用DefaultTemplateName中标识的模板。保证后者模板存在,除非MobileControlTemplates.ascx文件已被修改,这不受支持。

另请参阅

引用

SPMobileWebTemplateSelector 类

SPMobileWebTemplateSelector 成员

Microsoft.SharePoint.Mobile.WebControls 命名空间

其他资源

Mobile Page Rendering System