Udostępnij za pośrednictwem


SPListTemplateType Enumeration

Specifies the type of a list definition or a list template and assigns each an underlying Int32 value that corresponds to the list type’s ID number.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<SubsetCallableTypeAttribute> _
<ClientCallableTypeAttribute(Name := "ListTemplateType")> _
Public Enumeration SPListTemplateType
'Usage
Dim instance As SPListTemplateType
[SubsetCallableTypeAttribute]
[ClientCallableTypeAttribute(Name = "ListTemplateType")]
public enum SPListTemplateType

Members

Member name Description
InvalidType Not used. Value = -1.
NoListTemplate unspecified list type. Value = 0
GenericList Custom list. Value = 100.
DocumentLibrary Document library. Value = 101.
Survey Survey. Value = 102.
Links Links. Value = 103.
Announcements Announcements. Value = 104.
Contacts Contacts. Value = 105.
Events Calendar. Value = 106.
Tasks Tasks. Value = 107.
DiscussionBoard Discussion board. Value = 108.
PictureLibrary Picture library. Value = 109.
DataSources Data sources for a site. Value = 110.
WebTemplateCatalog Site template gallery. Value = 111.
UserInformation User Information. Value = 112.
WebPartCatalog Web Part gallery. Value = 113.
ListTemplateCatalog List Template gallery. Value = 114.
XMLForm XML Form library. Value = 115.
MasterPageCatalog Master Page gallery. Value = 116.
NoCodeWorkflows No Code Workflows. Value = 117.
WorkflowProcess Custom Workflow Process. Value = 118.
WebPageLibrary Wiki Page Library. Value = 119.
CustomGrid Custom grid for a list. Value = 120.
SolutionCatalog Solutions. Value = 121
NoCodePublic No Code Public Workflow. Value = 122
ThemeCatalog Themes. Value = 123
DataConnectionLibrary Data connection library for sharing information about external data connections. Value = 130.
WorkflowHistory Workflow History. Value = 140.
GanttTasks Project Tasks. Value = 150.
Meetings Meeting Series (Meeting). Value = 200.
Agenda Agenda (Meeting). Value = 201.
MeetingUser Attendees (Meeting). Value = 202.
Decision Decisions (Meeting). Value = 204.
MeetingObjective Objectives (Meeting). Value = 207.
TextBox Text Box (Meeting). Value = 210.
ThingsToBring Things To Bring (Meeting). Value = 211.
HomePageLibrary Workspace Pages (Meeting). Value = 212.
Posts Posts (Blog). Value = 301.
Comments Comments (Blog). Value = 302.
Categories Categories (Blog). Value = 303.
Facility Facility. Value = 402
Whereabouts Whereabouts. Value = 403
CallTrack Call Track. Value = 404
Circulation Circulation. Value = 405
Timecard Timecard. Value = 420
Holidays Holidays. Value = 421
IMEDic IME (Input Method Editor) Dictionary. Value = 499
ExternalList External. Value = 600
IssueTracking Issue tracking. Value = 1100.
AdminTasks Administrator Tasks. Value = 1200.
HealthRules Health Rules. Value = 1220
HealthReports Health Reports. Value = 1221

Remarks

The underlying integer values of each value in the enumeration are deliberately chosen to match the Collaborative Application Markup Language (CAML) Type ID number of the list type. (This ID is the value of the Type attribute of the ListTemplate Element (List Template) and the List Element (List).)

Keep in mind that Microsoft Corporation products that are built on SharePoint Foundation, such as Microsoft SharePoint Server, can and do define additional list types. Also, Microsoft SharePoint Foundation farms where your solution is deployed may have custom list types created, for example, by adding a CAML ListTemplate Element (List Template) to a Feature or to the ONET.xml file of a custom site definition configuration. (Such custom list types should have ID values above 10000 to ensure that they do not conflict with numbers that will be used by Microsoft in future versions of SharePoint Foundation.) Since these list types are not have corresponding values in this enumeration, you should consider not using this enumeration as a parameter value in your custom methods. Consider, instead, using String or Int32 parameters that take the list type ID as string or integer.

See Also

Reference

Microsoft.SharePoint Namespace