SPMobileList.TemplateType Property

Gets or sets the underlying template type for the list.

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

Syntax

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; }

Property Value

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

Remarks

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.

"AdminTasks"

"1200"

"Agenda"

"201"

"Announcements"

"104"

"Categories"

"303"

"Comments"

"302"

"Contacts"

"105"

"CustomGrid"

"120"

"DataConnectionLibrary"

"130"

"DataSources"

"110"

"Decision"

"204"

"DiscussionBoard"

"108"

"DocumentLibrary"

"101"

"Events"

"106"

"GanttTasks"

"150"

"GenericList"

"100"

"HomePageLibrary"

"212"

"InvalidType"

"-1"

"IssueTracking"

"1100"

"Links"

"103"

"ListTemplateCatalog"

"114"

"MasterPageCatalog"

"116"

"MeetingObjective"

"207"

"Meetings"

"200"

"MeetingUser"

"202"

"NoCodeWorkflows"

"117"

"PictureLibrary"

"109"

"Posts"

"301"

"Survey"

"102"

"Tasks"

"107"

"TextBox"

"210"

"ThingsToBring"

"211"

"UserInformation"

"112"

"WebPageLibrary"

"212"

"WebPartCatalog"

"113"

"WebTemplateCatalog"

"111"

"WorkflowHistory"

"140"

"WorkflowProcess"

"118"

"XMLForm"

"115"

See Also

Reference

SPMobileList Class

SPMobileList Members

Microsoft.SharePoint.MobileControls Namespace