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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.NotNull)> _
<ClientCallableAttribute> _
Public ReadOnly Property RootFolder As SPFolder
Get
'Usage
Dim instance As SPList
Dim value As SPFolder
value = instance.RootFolder
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)]
[ClientCallableAttribute]
public SPFolder RootFolder { get; }
Property Value
Type: Microsoft.SharePoint.SPFolder
An SPFolder object that represents the root folder.
Remarks
To use the RootFolder property, set the IncludeRootFolder property on the parent SPListCollection object to true.