ISharePointCommandContext.Site Property
Gets a Microsoft.SharePoint.SPSite that represents the SharePoint site collection on which the command is run.
Namespace: Microsoft.VisualStudio.SharePoint.Commands
Assembly: Microsoft.VisualStudio.SharePoint.Commands (in Microsoft.VisualStudio.SharePoint.Commands.dll)
Syntax
'Declaration
ReadOnly Property Site As SPSite
SPSite Site { get; }
Property Value
Type: SPSite
The SharePoint site collection on which the command is run.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.