Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the number of items in the list, including folders.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'Declaration
Public ReadOnly Property ItemCount As Integer
Get
'Usage
Dim instance As SPList
Dim value As Integer
value = instance.ItemCount
public int ItemCount { get; }
Type: System.Int32
A 32-bit integer that indicates the number of items, including folders.
The value of the ItemCount property includes folders within a document library, as well as files within subfolders. The value of the Count property of the SPListCollection class does not include folders.