Microsoft.SharePoint


SPListTemplateType Enumeration (Microsoft.SharePoint)
Specifies the type of a list definition or a list template.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Syntax

Visual Basic (Declaration)
Public Enumeration SPListTemplateType
Visual Basic (Usage)
Dim instance As SPListTemplateType
C#
public enum SPListTemplateType
Members

 Member nameDescription
AdminTasksAdministrator Tasks. Value = 1200. 
AgendaAgenda (Meeting). Value = 201. 
AnnouncementsAnnouncements. Value = 104. 
CategoriesCategories (Blog). Value = 303. 
CommentsComments (Blog). Value = 302. 
ContactsContacts. Value = 105. 
CustomGridCustom grid for a list. Value = 120. 
DataConnectionLibraryData connection library for sharing information about external data connections. Value = 130. 
DataSourcesData sources for a site. Value = 110. 
DecisionDecisions (Meeting). Value = 204. 
DiscussionBoardDiscussion board. Value = 108. 
DocumentLibraryDocument library. Value = 101. 
EventsCalendar. Value = 106. 
GanttTasksProject Tasks. Value = 150. 
GenericListCustom list. Value = 100. 
HomePageLibraryWorkspace Pages (Meeting). Value = 212. 
InvalidTypeNot used. Value = -1. 
IssueTrackingIssue tracking. Value = 1100. 
LinksLinks. Value = 103. 
ListTemplateCatalogList Template gallery. Value = 114. 
MasterPageCatalogMaster Page gallery. Value = 116. 
MeetingObjectiveObjectives (Meeting). Value = 207. 
MeetingsMeeting Series (Meeting). Value = 200. 
MeetingUserAttendees (Meeting). Value = 202. 
NoCodeWorkflowsNo Code Workflows. Value = 117. 
PictureLibraryPicture library. Value = 109. 
PostsPosts (Blog). Value = 301. 
SurveySurvey. Value = 102. 
TasksTasks. Value = 107. 
TextBoxText Box (Meeting). Value = 210.  
ThingsToBringThings To Bring (Meeting). Value = 211. 
UserInformationUser Information. Value = 112. 
WebPageLibraryWiki Page Library. Value = 119. 
WebPartCatalogWeb Part gallery. Value = 113. 
WebTemplateCatalogSite template gallery. Value = 111. 
WorkflowHistoryWorkflow History. Value = 140. 
WorkflowProcessCustom Workflow Process. Value = 118. 
XMLFormXML Form library. Value = 115. 
See Also

Tags :


Community Content

puneetspeed
MOSS 2007 - Create a survey, add question and choices programmatically
                    SPWeb web = SPControl.GetContextWeb(HttpContext.Current);

// create the out of the box survey using the list template
Guid surveyId = web.Lists.Add("Name of the Title", "Description of the survey", SPListTemplateType.Survey);

SPList survey = web.Lists[surveyId];

string Question = "what?";
StringCollection choices = new StringCollection();
choices.Add("choice1");
choices.Add("choice2");
choices.Add("choice3");

// Set the question and choices for the survey
survey.Fields.Add(Question, SPFieldType.Choice, true, false, choices);
                    // save the changes back to the list
survey.Update();

// save the changes made in the site
web.Update();
 

This is available at http://puneetspeed.spaces.live.com/blog/cns!AFAFB88D250BEE36!268.entry

Tags :

Thomas Lee
Slide Library SPListTemplateType?

It's not clear to me which SPListTemplateType Enumeration should be used to create a PowerPoint slide library. Anyone?


[Noelle Mallory - MSFT] Please post questions to the MSDN Forums at http://forums.microsoft.com/msdn. You will likely get a quicker response through the forum than through the Community Content.


Jeffrey Zeeman
How to add a slide library

The Slide Library is not a default list and you will need to find the feature that contains the library.

I copied the feature guid and type from the SlideLibrary feature located at C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\TEMPLATE\FEATURES\SlideLibrary\

Using the guid and type you can add the library by the following overload.

web.Lists.Add("name-of-the-slide-library", "description-field-you-can-use", "name-of-the-slide-library", "0be49fe9-9bc9-409d-abf9-702753bd878d", 2100, "101");

Tags :

Thomas Lee
Missing values from the enumeration

SitesList = 300
Pages = 850

There may be more, but when iterating over the lists in the SPSites template these two popped out as having no corresponding value in the enueration.


Tags : contentbug

Page view tracker