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)

Syntax

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

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

Parameters

  • 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.

Exceptions

Exception Condition
ArgumentException

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

UnauthorizedAccessException

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

See also

Reference

ListCollection class

ListCollection members

Microsoft.SharePoint.Client namespace