SPWeb.Folders Property
Gets the collection of all first-level folders in the Web site.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
Public ReadOnly Property Folders As SPFolderCollection
Get
Dim instance As SPWeb
Dim value As SPFolderCollection
value = instance.Folders
public SPFolderCollection Folders { get; }
Property Value
Type: Microsoft.SharePoint.SPFolderCollection
An SPFolderCollection object that represents the folders.
Remarks
The user must have permissions to use the Browse Directories code that uses the Folders property.