获取或设置列表的基础模板类型。
命名空间: Microsoft.SharePoint.Mobile.WebControls
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Property TemplateType As String
Get
Set
用法
Dim instance As SPMobileList
Dim value As String
value = instance.TemplateType
instance.TemplateType = value
public string TemplateType { get; set; }
属性值
类型:System.String
指定列表的模板类型String 。
备注
虽然该属性是类型String,您必须使用的字符串表示形式的名称或模板类型的编号, SPListTemplateType枚举中所示。
For custom list templates, you can use the string representation of the type number, such as "10001" or "98765432", or the name, such as "MyCustomListTemplate." The type number is the value of the Type attribute of the <ListTemplate> element in the Elements.xml file that you create for the custom list template. See How to: Create a Custom List Definition. The name is the value of the Name attribute of that same <ListTemplate> element.
创建自定义列表模板时,分配大于 10000,以确保您的号码不与 Microsoft 可能包括在SharePoint Foundation的未来版本的新内置模板类型冲突的类型值。