Partager via


ListCollection.GetById - Méthode

Returns the list with the specified list identifier.

Espace de noms :  Microsoft.SharePoint.Client
Assemblys :   Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)

Syntaxe

'Déclaration
Public Function GetById ( _
    id As Guid _
) As List
'Utilisation
Dim instance As ListCollection
Dim id As Guid
Dim returnValue As List

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

Paramètres

  • id
    Type : System.Guid

    Specifies the list identifier.

Valeur renvoyée

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.

Voir aussi

Référence

ListCollection classe

ListCollection - Membres

Microsoft.SharePoint.Client - Espace de noms