SP.ListCollection.getByTitle(strListName) Method
Applies to: SharePoint Foundation 2010
Returns the list with the specified title from the collection.
var value = SP.ListCollection.getByTitle(strListName);
Parameters
strListName
A string containing the list title.It must not be null. It must not be empty. Its length must be equal to or less than 255.
Type: String
Return Value
Type: SP.List
Applies To
Exceptions
- ArgumentException
The list does not exist. Error code: -2147024809.
- UnauthorizedAccessException
The current user has insufficient permissions to perform the operation. Error code: - 2147024891.