SP.ListCollection Methods

Applies to: SharePoint Foundation 2010

The following table lists the methods of the SP.ListCollection class.

Methods

Name

Description

add

Creates a new list or a document library.

ensureSiteAssetsLibrary

Gets a list that is the default asset location for images or other files, which the users upload to their wiki pages.

ensureSitePagesLibrary

Gets a list that is the default location for wiki pages.

getById

Returns the list with the specified list identifier.

getByTitle

Returns the list with the specified title from the collection.

itemAt

Gets the list at the specified index in the collection.

ListCollection

Initializes a new instance of the SP.ListCollection Class class.

Applies To

SP.ListCollection Class

See Also

Reference

SP.ListCollection Properties

SP Namespace