Partilhar via


SPFolder.ItemCount Property

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

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute> _
Public ReadOnly Property ItemCount As Integer
    Get
'Usage
Dim instance As SPFolder
Dim value As Integer

value = instance.ItemCount
[ClientCallableAttribute]
public int ItemCount { get; }

Property Value

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

See Also

Reference

SPFolder Class

SPFolder Members

Microsoft.SharePoint Namespace