This topic has not yet been rated - Rate this topic

SPListItemCollection.Count Property

Gets the number of list items in the collection, excluding folders.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public override int Count { get; }

Property Value

Type: System.Int32
A 32-bit integer that indicates the number of list items, excluding folders.

Implements

ICollection.Count

The value of the ItemCount property of the SPList class includes folders and files within subfolders.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ