共用方式為


Microsoft.VisualStudio.SharePoint.Commands 命名空間

Microsoft.VisualStudio.SharePoint.Commands 命名空間包含可用來建立自訂「SharePoint 命令」(SharePoint Command) 的型別。

SharePoint 命令是一種方法,該命令法可以從 Visual Studio 中 SharePoint 工具的擴充功能呼叫 SharePoint 伺服器物件模型中的 API。如需詳細資訊,請參閱 呼叫 SharePoint 物件模型HOW TO:建立 SharePoint 命令

類別

  類別 說明
公用類別 SharePointCommandAttribute 指出方法為 SharePoint 命令。
公用類別 SharePointCommandServices 表示可以在 SharePoint 命令實作中使用的服務。

介面

  介面 說明
公用介面 ISharePointCommandContext 提供正在其中執行 SharePoint 命令的內容。
公用介面 ISharePointCommandLogger 表示 SharePoint 命令的記錄服務。

列舉型別

  列舉型別 說明
公用列舉型別 LogCategory 指定在 [輸出] 視窗中以及在 [錯誤清單] 視窗中,顯示使用 SharePoint 記錄服務所寫入之訊息的位置。

請參閱

參考

其他資源

呼叫 SharePoint 物件模型

HOW TO:建立 SharePoint 命令