Share via


Web.ListTemplates property

Gets a value that specifies the collection of list definitions and list templates available for creating lists on the site.

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

Syntax

'Declaration
Public ReadOnly Property ListTemplates As ListTemplateCollection
    Get
'Usage
Dim instance As Web
Dim value As ListTemplateCollection

value = instance.ListTemplates
public ListTemplateCollection ListTemplates { get; }

Property value

Type: Microsoft.SharePoint.Client.ListTemplateCollection
Returns a ListTemplateCollection instance representing the collection of list definitions and list templates available for creating lists on the site.

Remarks

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

See also

Reference

Web class

Web members

Microsoft.SharePoint.Client namespace