Partager via


SPList.ItemCount - Propriété

Gets the number of items in the list, including folders.

Espace de noms :  Microsoft.SharePoint
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Public ReadOnly Property ItemCount As Integer
    Get
'Utilisation
Dim instance As SPList
Dim value As Integer

value = instance.ItemCount
public int ItemCount { get; }

Valeur de propriété

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

Remarques

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.

Voir aussi

Référence

SPList classe

SPList - Membres

Microsoft.SharePoint - Espace de noms