Add(String, String, Microsoft.SharePoint.SPListTemplate, Microsoft.SharePoint.SPDocTemplate) Method

The Add method of the SPListCollection class creates a document library with the specified title, description, list template object, and document template object.

Parameters

strTitle   A string that contains the title.

strDescription   A string that contains the description.

template   A Microsoft.SharePoint.SPListTemplate object that represents the list definition or list template.

documentTemplate   A Microsoft.SharePoint.SPDocTemplate object that represents the document template.

Return Value

A GUID that identifies the new list.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security