Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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.

Show:
© 2015 Microsoft