ListCollection.GetById method

Returns the list with the specified list identifier.

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

public List GetById(
	Guid id
)

Parameters

id
Type: System.Guid

Specifies the list identifier.

Return value

Type: Microsoft.SharePoint.Client.List
Returns a List instance representing the list with the specified list identifier.

ExceptionCondition
[Microsoft.SharePoint.SPException]

List does not exist. Error code: -2130246262.

[System.UnauthorizedAccessException]

The current user has insufficient permissions. Error code: - 2147024891.

Show: