SPFolderHierarchy.Count property
Count Gets the number of folders in this hierarchy.
Namespace: Microsoft.Office.Server.Utilities
Assembly: Microsoft.Office.Server (in Microsoft.Office.Server.dll)
Syntax
'Declaration
Public ReadOnly Property Count As Integer
Get
'Usage
Dim instance As SPFolderHierarchy
Dim value As Integer
value = instance.Count
public int Count { get; }
Property value
Type: System.Int32
Returns Int32.
Remarks
This may be inefficient if non-recursive because it must scan and do string comparisons. There are also more efficient ways to get the count, if that is all you're trying to get.