SharePoint List的List Template ID明细表
编写SharePoint的Event Receiver需要用到List Template ID来进行绑定, 下面的列表对于编程和排查错误都是个很好的索引.
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 |
牛人还做了个代码段来获取这些列表模板的名字和ID.
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))); }
参考资料:
List Template ID for SharePoint Lists
http://sharepoint-snippets.com/list-template-id-for-sharepoint-lists/
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
2010-07-29 SQL Server中对各种锁的介绍.
2009-07-29 Linux 用户和组的管理