List.GetView - Méthode
Returns the list view with the specified view 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 GetView ( _
viewGuid As Guid _
) As View
'Utilisation
Dim instance As List
Dim viewGuid As Guid
Dim returnValue As View
returnValue = instance.GetView(viewGuid)
public View GetView(
Guid viewGuid
)
Paramètres
viewGuid
Type : System.GuidSpecifies the view identifier.
Valeur renvoyée
Type : Microsoft.SharePoint.Client.View
Returns a View instance representing the list view with the specified view identifier.
Exceptions
Exception | Condition |
---|---|
[System.ArgumentException] | List view does not exist. Error code: -2147024809. |
[System.UnauthorizedAccessException] | The current user has insufficient permissions. Error code: -2147024891. |
Remarques
If an empty GUID is specified it must return the default view of the list.