Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

SPWeb.Folders property

Gets the collection of all first-level folders in the website.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)]
public SPFolderCollection Folders { get; }

Property value

Type: Microsoft.SharePoint.SPFolderCollection
A collection of SPFolder objects that represents the subfolders of the website’s root folder.

The user must have SPBasePermissions.BrowseDirectories permission in order to access the Folders property.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.