List.Views property

Gets a value that specifies the collection of all public views on the list and personal views of the current user on the list.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public ReadOnly Property Views As ViewCollection
    Get
'Usage
Dim instance As List
Dim value As ViewCollection

value = instance.Views
public ViewCollection Views { get; }

Property value

Type: Microsoft.SharePoint.Client.ViewCollection
Returns a ViewCollection instance representing the collection of all public views on the list and personal views of the current user on the list.

Exceptions

Exception Condition
[System.UnauthorizedAccessException]

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

Remarks

It must not be a null reference (Nothing in Visual Basic).

See also

Reference

List class

List members

Microsoft.SharePoint.Client namespace