ListCollection.GetByTitle - Méthode
Returns the list with the specified title from the collection.
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 GetByTitle ( _
title As String _
) As List
'Utilisation
Dim instance As ListCollection
Dim title As String
Dim returnValue As List
returnValue = instance.GetByTitle(title)
public List GetByTitle(
string title
)
Paramètres
title
Type : System.StringA string containing the list title.
It must not be une référence Null (Rien dans Visual Basic). It must not be empty. Its length must be equal to or less than 255.
Valeur renvoyée
Type : Microsoft.SharePoint.Client.List
A List object that represents the list.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The list does not exist. Error code: -2147024809. |
UnauthorizedAccessException | The current user has insufficient permissions to perform the operation. Error code: - 2147024891. |