Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Server Technologies
SDK Documentation
SPWeb Class
SPWeb Properties
 ListTemplates Property
SPWeb.ListTemplates Property (Microsoft.SharePoint)
Gets the collection of all list definitions and list templates that are available for creating lists on the Web site.

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

Visual Basic (Declaration)
Public ReadOnly Property ListTemplates As SPListTemplateCollection
Visual Basic (Usage)
Dim instance As SPWeb
Dim value As SPListTemplateCollection

value = instance.ListTemplates
C#
public SPListTemplateCollection ListTemplates { get; }

Property Value

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.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker