Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ListTemplates property
Collapse the table of content
Expand the table of content

SPWeb.ListTemplates property

Gets the collection of all list definitions and list templates that are available for creating lists on the website.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public SPListTemplateCollection ListTemplates { get; }

Property value

Type: Microsoft.SharePoint.SPListTemplateCollection
An SPListTemplateCollection object that represents all the list definitions and list templates that are available for creating lists.

Use the GetCustomListTemplates method of the SPSite class to return only the list templates that are created by users.

Show:
© 2015 Microsoft