SPFolder.ItemCount property

Gets the number of direct children, including subfolders, in this folder.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Public ReadOnly Property ItemCount As Integer
Dim instance As SPFolder
Dim value As Integer

value = instance.ItemCount

Property value

Type: System.Int32
Returns an Int32 representing the number of items contained in this folder.