Site Property
The document is archived and information here might be outdated

SPContext.Site Property

Windows SharePoint Services 3

Gets the site collection that is associated with the Windows SharePoint Services context.

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

public SPSite Site { get; }

Property Value

Type: Microsoft.SharePoint.SPSite
An SPSite object that represents the site collection.
Show:
© 2016 Microsoft