您的位置:首页 > 其它

SharePoint List的List Template ID明细表

2011-07-29 11:24 447 查看
编写SharePoint的EventReceiver需要用到ListTemplateID来进行绑定,下面的列表对于编程和排查错误都是个很好的索引.

Listtemplatename

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));
ArraylistTemplateId=System.Enum.GetValues(typeof(SPListTemplateType));

for(inti=0;i<listTemplateId.Length;i++)
{
Debug.WriteLine(string.Format("ListTemplatename:{0},ListTemplateId:{1}",listTemplateNames[i],(int)listTemplateId.GetValue(i)));
}

参考资料:

ListTemplateIDforSharePointLists

http://sharepoint-snippets.com/list-template-id-for-sharepoint-lists/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: