ItemCount Property

The ItemCount property of the SPList class gets the number of items in the list.

Property Value

A 32-bit integer that indicates the number of items.

Remarks

The value of the ItemCount property does not include folders in a document library but does include files within subfolders in a document library.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security