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)
Visual Basic (Declaration)
Public ReadOnly Property RootFolder As SPFolder
Dim instance As SPList
Dim value As SPFolder
value = instance.RootFolder
public SPFolder RootFolder { get; }
Property Value
An SPFolder object that represents the root folder.
To use the RootFolder property, set the IncludeRootFolder property on the parent SPListCollection object to true.