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 Function GetById ( _
    id As Guid _
) As List
Dim instance As ListCollection
Dim id As Guid
Dim returnValue As List

returnValue = instance.GetById(id)
public List GetById(
    Guid id


Return value

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


Exception Condition

List does not exist. Error code: -2130246262.


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

See also


ListCollection class

ListCollection members

Microsoft.SharePoint.Client namespace