SPFolderHierarchy.GetSubFolders Method (String, Boolean)

Gets the subfolders of a folder indicated by the URL.

Namespace:  Microsoft.Office.Server.Utilities
Assembly:  Microsoft.Office.Server (in Microsoft.Office.Server.dll)

Syntax

'Declaration
Public Function GetSubFolders ( _
    strFolderUrl As String, _
    recursive As Boolean _
) As SPFolderHierarchy
'Usage
Dim instance As SPFolderHierarchy
Dim strFolderUrl As String
Dim recursive As Boolean
Dim returnValue As SPFolderHierarchy

returnValue = instance.GetSubFolders(strFolderUrl, _
    recursive)
public SPFolderHierarchy GetSubFolders(
    string strFolderUrl,
    bool recursive
)

Parameters

  • strFolderUrl
    Type: System.String
    The server-relative folder URL.
  • recursive
    Type: System.Boolean
    If true, the returned hierarchy represents the recursive subfolders; otherwise, it represents only the immediate children.

Return Value

Type: Microsoft.Office.Server.Utilities.SPFolderHierarchy
Returns SPFolderHierarchy.

Remarks

If this.ThrottledMode is true, consider specifying false for recursive since the returned hierarchy will be subject to the restrictions documented on the ThrottledMode property.

See Also

Reference

SPFolderHierarchy Class

SPFolderHierarchy Members

GetSubFolders Overload

Microsoft.Office.Server.Utilities Namespace