Share via


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)

Syntax

'Declaration
Public ReadOnly Property Lists As SPListCollection
    Get
'Usage
Dim instance As SPWeb
Dim value As SPListCollection

value = instance.Lists
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.

See also

Reference

SPWeb class

SPWeb members

Microsoft.SharePoint namespace

GetListsOfType(SPBaseType)