Share via


SPWeb.RootFolder property

Gets the root folder for the website.

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

Syntax

'Declaration
Public ReadOnly Property RootFolder As SPFolder
    Get
'Usage
Dim instance As SPWeb
Dim value As SPFolder

value = instance.RootFolder
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