This topic has not yet been rated Rate this topic

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 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.

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 SharePoint Foundation.

Did you find this helpful?
(2000 characters remaining)
Community Content Add
Annotations FAQ