RootFolder property
Collapse the table of content
Expand the table of content

SPList.RootFolder property

Gets the folder that contains all the files that are used in working with the list.

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

public SPFolder RootFolder { get; }

Property value

Type: Microsoft.SharePoint.SPFolder
An SPFolder object that represents the root folder.

To use the RootFolder property, set the IncludeRootFolder property on the parent SPListCollection object to true.

© 2016 Microsoft