Partager via


ISharePointCommandContext.Site Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

See Also

Reference

ISharePointCommandContext Interface

Microsoft.VisualStudio.SharePoint.Commands Namespace