SPList.Views Property

Gets the collection of view objects that represents all the views of the list.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.NotNull)> _
<ClientCallableAttribute> _
Public ReadOnly Property Views As SPViewCollection
    Get
'Usage
Dim instance As SPList
Dim value As SPViewCollection

value = instance.Views
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)]
[ClientCallableAttribute]
public SPViewCollection Views { get; }

Property Value

Type: Microsoft.SharePoint.SPViewCollection
An SPViewCollection object that represents the views.

See Also

Reference

SPList Class

SPList Members

Microsoft.SharePoint Namespace