Lists property
Collapse the table of content
Expand the table of content

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)

public SPListCollection Lists { get; }

Property value

Type: Microsoft.SharePoint.SPListCollection
A collection of SPList objects.

If you are interested only in lists of a specific type, call the GetListsOfType(SPBaseType) method instead.

© 2016 Microsoft