SPWeb.RootFolder Property

Gets the root folder for the website.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute> _
Public ReadOnly Property RootFolder As SPFolder
    Get
'Usage
Dim instance As SPWeb
Dim value As SPFolder

value = instance.RootFolder
[ClientCallableAttribute]
public SPFolder RootFolder { get; }

Property Value

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

See Also

Reference

SPWeb Class

SPWeb Members

Microsoft.SharePoint Namespace