SPWeb.Site Property

Gets the parent site collection for the website.

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

public SPSite Site { get; }

Property Value

Type: Microsoft.SharePoint.SPSite
An SPSite object that represents the parent site.
Show: