共用方式為


ISharePointCommandContext.Site 屬性

取得 Microsoft.SharePoint.SPSite,此物件表示命令執行所在的 SharePoint 網站集合。

命名空間:  Microsoft.VisualStudio.SharePoint.Commands
組件:  Microsoft.VisualStudio.SharePoint.Commands (在 Microsoft.VisualStudio.SharePoint.Commands.dll 中)

語法

'宣告
ReadOnly Property Site As SPSite
    Get
SPSite Site { get; }

屬性值

型別:SPSite
命令執行所在的 SharePoint 網站集合。

.NET Framework 安全性

請參閱

參考

ISharePointCommandContext 介面

Microsoft.VisualStudio.SharePoint.Commands 命名空間