0 out of 2 rated this helpful - Rate this topic

SPSite.RootWeb Property

Gets the root Web site of the site collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
[ClientCallableAttribute]
public SPWeb RootWeb { get; }

Property Value

Type: Microsoft.SharePoint.SPWeb
An SPWeb object that represents the root Web site.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
It would be convenient
It would be convenient to get links between same class members for different object models. For example link to RootWeb property in ECMAscript object model.
Dispose call?
Second that Dispose question.
Dispose Rules SPSite.RootWeb
Can someone clarify whether the dispose rules for the SPSite.RootWeb property outlined here (http://blogs.msdn.com/b/rogerla/archive/2008/10/04/updated-spsite-rootweb-dispose-guidance.aspx) also apply to this version of SharePoint?