SPList.Folders property

Gets the collection of folder items for the list.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

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).

See also

Reference

SPList class

SPList members

Microsoft.SharePoint namespace

HasExternalDataSource