Site Property
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

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.
© 2015 Microsoft