共用方式為


ISharePointCommandContext.Web 屬性

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

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

語法

'宣告
ReadOnly Property Web As SPWeb
    Get
SPWeb Web { get; }

屬性值

型別:SPWeb
命令執行所在的 SharePoint 網站。

.NET Framework 安全性

請參閱

參考

ISharePointCommandContext 介面

Microsoft.VisualStudio.SharePoint.Commands 命名空間