Share via


SPSite.RootWeb property

Gets the root Web site of the site collection.

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

Syntax

'Declaration
Public ReadOnly Property RootWeb As SPWeb
    Get
'Usage
Dim instance As SPSite
Dim value As SPWeb

value = instance.RootWeb
public SPWeb RootWeb { get; }

Property value

Type: Microsoft.SharePoint.SPWeb
An SPWeb object that represents the root Web site.

See also

Reference

SPSite class

SPSite members

Microsoft.SharePoint namespace