Export (0) Print
Expand All

ListCollection.GetByTitle method

Returns the list with the specified title from the collection.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (in Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

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.

ExceptionCondition
ArgumentException

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

UnauthorizedAccessException

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

Show:
© 2014 Microsoft