This documentation is archived and is not being maintained.

SPWeb.Folders Property

Windows SharePoint Services 3

Gets the collection of all first-level folders in the Web site.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public SPFolderCollection Folders { get; }

Property Value

Type: Microsoft.SharePoint.SPFolderCollection
An SPFolderCollection object that represents the folders.

The user must have permissions to use the Browse Directories code that uses the Folders property.