Compartilhar via


ListCollection.GetById Method

Returns the list with the specified list identifier.

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

Syntax

'Declaration
<RemoteAttribute> _
Public Function GetById ( _
    uniqueId As Guid _
) As List
'Usage
Dim instance As ListCollection
Dim uniqueId As Guid
Dim returnValue As List

returnValue = instance.GetById(uniqueId)
[RemoteAttribute]
public List GetById(
    Guid uniqueId
)

Parameters

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

Exceptions

Exception Condition
[Microsoft.SharePoint.SPException]

List does not exist. Error code: -2130246262.

[System.UnauthorizedAccessException]

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

See Also

Reference

ListCollection Class

ListCollection Members

Microsoft.SharePoint.Client Namespace