ListCollection.GetById method
Returns the list with the specified list identifier.
Namespace: Microsoft.SharePoint.Client
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Function GetById ( _
id As Guid _
) As List
'Usage
Dim instance As ListCollection
Dim id As Guid
Dim returnValue As List
returnValue = instance.GetById(id)
public List GetById(
Guid id
)
Parameters
id
Type: System.GuidSpecifies the list identifier.
Return value
Type: Microsoft.SharePoint.Client.List
Returns a List instance representing the list with the specified list identifier.
Exceptions
Exception | Condition |
---|---|
[Microsoft.SharePoint.SPException] | List does not exist. Error code: -2130246262. |
[System.UnauthorizedAccessException] | The current user has insufficient permissions. Error code: - 2147024891. |