Folders Property
TOC
Collapse the table of content
Expand the table of content

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

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).
Show:
© 2016 Microsoft