Represents a list definition or a list template, which defines the fields and views for a list. List definitions are contained in files within \\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\FEATURES, but list templates are created through the user interface or through the object model when a list is saved as a template.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Use the ListTemplates property of the SPWeb class to return an SPListTemplateCollection object that represents the collection of list definitions for a Web site. Use the GetCustomListTemplates method of the SPSite class to return an SPListTemplateCollection object that represents the collection of list templates for a site collection. Use an indexer to return a single list definition or list template from the collection. For example, if the collection is assigned to a variable named myListTemplates, use myListTemplates[index] in Microsoft Visual C#, or myListTemplates(index) in Microsoft Visual Basic, where index is the index number of the definition or template in the collection or the name of the definition or template.