SPListCollection.Add Method

Include Protected Members
Include Inherited Members

Creates a list or a document library.

Overload List

  Name Description
Public method Add(String, String, SPListTemplate) Creates a list with the specified title, description, and list template object.
Public method Add(String, String, SPListTemplateType) Creates a list with the specified title, description, and list definition type.
Public method Add(String, String, SPListTemplate, SPDocTemplate) Creates a document library with the specified title, description, list template object, and document template object.
Public method Add(String, String, String, SPListDataSource) Creates a list with the specified title, description, URL, and external data source.
Public method Add(String, String, String, String, Int32, String) Creates a document library with the specified title, description, URL, Feature ID, list template type, and document template type.
Public method Add(String, String, String, String, Int32, String, SPListTemplate.QuickLaunchOptions) Creates a list based on the specified title, description, URL, Feature ID, template type, document template type, and options for displaying a link to the list in Quick Launch.
Public method Add(String, String, String, String, Int32, String, String, SPFeatureDefinition, SPListTemplate.QuickLaunchOptions) Creates a list based on the specified title, description, URL, Feature ID, template type, document template type, the list feature definition, customizations to the feature definition, and options for displaying a link to the list in Quick Launch.

Top

See Also

Reference

SPListCollection Class

SPListCollection Members

Microsoft.SharePoint Namespace