SPList.Folders Property
Gets the collection of folder items for the list.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public ReadOnly Property Folders As SPListItemCollection
Get
'Usage
Dim instance As SPList
Dim value As SPListItemCollection
value = instance.Folders
public SPListItemCollection Folders { get; }
Property Value
Type: Microsoft.SharePoint.SPListItemCollection
A collection of SPListItem objects that represent the folder items. If the list has an external data source, the property returns a null reference (Nothing in Visual Basic).