Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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.

Community Additions

© 2015 Microsoft