Gets the collection of all items in the list. This property returns all metadata of each item in the list and can greatly diminish performance. It is recommended that you instead use the
GetItems method to return items from a list, which allows you to specify which data to return.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
Public Overridable ReadOnly Property Items As SPListItemCollection
Dim instance As SPList
Dim value As SPListItemCollection
value = instance.Items
public virtual SPListItemCollection Items { get; }
Property Value
An SPListItemCollection object that represents the collection of items.
The Items property returns all the files in a document library, including files in subfolders, but not the folders themselves. In a document library, folders are not considered items.