ListCollection.GetByTitle method

Returns the list with the specified title from the collection.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)


Public Function GetByTitle ( _
    title As String _
) As List
Dim instance As ListCollection
Dim title As String
Dim returnValue As List

returnValue = instance.GetByTitle(title)
public List GetByTitle(
    string title


  • title
    Type: System.String

    A string containing the list title.

    It must not be a null reference (Nothing in Visual Basic). It must not be empty. Its length must be equal to or less than 255.

Return value

Type: Microsoft.SharePoint.Client.List
A List object that represents the list.


Exception Condition

The list does not exist. Error code: -2147024809.


The current user has insufficient permissions to perform the operation. Error code: - 2147024891.

See also


ListCollection class

ListCollection members

Microsoft.SharePoint.Client namespace