Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the site collection that is associated with the current Microsoft SharePoint Foundation request context. Used in conjunction with the static Current property.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'Declaration
Public ReadOnly Property Site As SPSite
Get
'Usage
Dim instance As SPContext
Dim value As SPSite
value = instance.Site
public SPSite Site { get; }
Type: Microsoft.SharePoint.SPSite
The site collection of the current request context.
Use SPContext.Current.Site to get the site collection of the current request context.