SPFolderHierarchy.GetFolderSubFolderCount Method
Gets the count of subfolders for the specified SPFolder object.
Namespace: Microsoft.Office.Server.Utilities
Assembly: Microsoft.Office.Server (in Microsoft.Office.Server.dll)
Syntax
'Declaration
Public Shared Function GetFolderSubFolderCount ( _
folder As SPFolder _
) As Integer
'Usage
Dim folder As SPFolder
Dim returnValue As Integer
returnValue = SPFolderHierarchy.GetFolderSubFolderCount(folder)
public static int GetFolderSubFolderCount(
SPFolder folder
)
Parameters
- folder
Type: Microsoft.SharePoint.SPFolder
SPFolder.
Return Value
Type: System.Int32
Returns Int32.