SPMobileList.TemplateType Property

Gets or sets the underlying template type for the list.

Namespace:  Microsoft.SharePoint.MobileControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)


Public Property TemplateType As String

Dim instance As SPMobileList
Dim value As String

value = instance.TemplateType

instance.TemplateType = value
public string TemplateType { get; set; }

Property Value

Type: System.String
A String that specifies the template type of the list.


Although the property is type String, you must use a string representation of the name or the number of the template type as it appears in the SPListTemplateType enumeration. The possible values for the built-in list template types are shown in the table below.

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 (List Template)> 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 (List Template)> element.

When creating custom list templates, assign Type values above 10000 to ensure that your numbers do not conflict with new built-in template types that Microsoft may include with future versions of Windows SharePoint Services.













































































See Also


SPMobileList Class

SPMobileList Members

Microsoft.SharePoint.MobileControls Namespace