12/23/2012
Date:
10:35:00 PM
Posted By
SharePoint
Many SharePoint elements are using ListTemplateID to identify the list they are refearing to. For example event receivers CAML looks like this <Receivers ListTemplateId="100">, custom actions uses RegistrationId, etc.
For reference you can find the list of ListTemplateID in the table bellow
List template name | ListTemplateID |
---|
NoListTemplate | 0 |
GenericList | 100 |
DocumentLibrary | 101 |
Survey | 102 |
Links | 103 |
Announcements | 104 |
Contacts | 105 |
Events | 106 |
Tasks | 107 |
DiscussionBoard | 108 |
PictureLibrary | 109 |
DataSources | 110 |
WebTemplateCatalog | 111 |
UserInformation | 112 |
WebPartCatalog | 113 |
ListTemplateCatalog | 114 |
XMLForm | 115 |
MasterPageCatalog | 116 |
NoCodeWorkflows | 117 |
WorkflowProcess | 118 |
WebPageLibrary | 119 |
CustomGrid | 120 |
SolutionCatalog | 121 |
NoCodePublic | 122 |
ThemeCatalog | 123 |
DataConnectionLibrary | 130 |
WorkflowHistory | 140 |
GanttTasks | 150 |
Meetings | 200 |
Agenda | 201 |
MeetingUser | 202 |
Decision | 204 |
MeetingObjective | 207 |
TextBox | 210 |
ThingsToBring | 211 |
HomePageLibrary | 212 |
Posts | 301 |
Comments | 302 |
Categories | 303 |
Facility | 402 |
Whereabouts | 403 |
CallTrack | 404 |
Circulation | 405 |
Timecard | 420 |
Holidays | 421 |
IMEDic | 499 |
ExternalList | 600 |
IssueTracking | 1100 |
AdminTasks | 1200 |
HealthRules | 1220 |
HealthReports | 1221 |
InvalidType | -1 |
ListTemplateID can be accessed programmatically like this:
string [] listTemplateNames = Enum.GetNames( typeof (SPListTemplateType)); |
Array listTemplateId = System.Enum.GetValues( typeof (SPListTemplateType)); |
for ( int i = 0; i < listTemplateId.Length; i++) |
Debug.WriteLine( string .Format( "ListTemplate name: {0}, ListTemplateId: {1}" , |
listTemplateNames[i], ( int )listTemplateId.GetValue(i))); |
}