ListTemplates property
TOC
Collapse the table of content
Expand the table of content

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
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (in Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

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.

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

Show:
© 2016 Microsoft