Site.RootWeb Property

Gets a value that returns the top-level site of the site collection.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public ReadOnly Property RootWeb As Web
    Get
'Usage
Dim instance As Site
Dim value As Web

value = instance.RootWeb
[RemoteAttribute]
public Web RootWeb { get; }

Property Value

Type: Microsoft.SharePoint.Client.Web
Returns a Web instance representing the top-level site of the site collection.

See Also

Reference

Site Class

Site Members

Microsoft.SharePoint.Client Namespace