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
Syntax
'Declaration
Public ReadOnly Property Site As SPSite
Get
'Usage
Dim instance As SPWeb
Dim value As SPSite
value = instance.Site
public SPSite Site { get; }
Property Value
Type: Microsoft.SharePoint.SPSite
An SPSite object that represents the parent site.