SPFolderHierarchy Constructor (SPList, Boolean, String, Boolean)

Initializes a new instance of a collection of all folders in the list.

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


Public Sub New ( _
    list As SPList, _
    fIncludeDocsets As Boolean, _
    strViewFields As String, _
    fViewFieldsOnly As Boolean _
Dim list As SPList
Dim fIncludeDocsets As Boolean
Dim strViewFields As String
Dim fViewFieldsOnly As Boolean

Dim instance As New SPFolderHierarchy(list, fIncludeDocsets, _
    strViewFields, fViewFieldsOnly)
public SPFolderHierarchy(
    SPList list,
    bool fIncludeDocsets,
    string strViewFields,
    bool fViewFieldsOnly


  • fIncludeDocsets
    Type: System.Boolean
    If true, document sets are included in the collection. Otherwise, false.
  • fViewFieldsOnly
    Type: System.Boolean
    If true, only strViewFields are returned; otherwise, all fields are returned and are subject to SPQuery query limits.


The list.RootFolder is not included in the collection.

See Also


SPFolderHierarchy Class

SPFolderHierarchy Members

SPFolderHierarchy Overload

Microsoft.Office.Server.Utilities Namespace