SPWeb.Lists Property
Gets the collection of all lists that are contained in the website.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
<ClientCallableAttribute> _
Public ReadOnly Property Lists As SPListCollection
Get
'Usage
Dim instance As SPWeb
Dim value As SPListCollection
value = instance.Lists
[ClientCallableAttribute]
public SPListCollection Lists { get; }
Property Value
Type: Microsoft.SharePoint.SPListCollection
A collection of SPList objects.
Remarks
If you are interested only in lists of a specific type, call the GetListsOfType(SPBaseType) method instead.