共用方式為


ISharePointCommandLogger 介面

表示 SharePoint 命令的記錄服務。

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

語法

'宣告
Public Interface ISharePointCommandLogger
public interface ISharePointCommandLogger

方法

  名稱 說明
公用方法 WriteLine(String, LogCategory) 使用指定的分類,將訊息寫入 [輸出] 視窗或 [錯誤清單] 視窗中。
公用方法 WriteLine(String, LogCategory, String) 使用指定的分類及 Help 關鍵字,將訊息寫入 [輸出] 視窗或 [錯誤清單] 視窗中。
公用方法 WriteLine(String, LogCategory, String, Int32, Int32) 使用指定的分類及錯誤位置資訊,將訊息寫入 [輸出] 視窗或 [錯誤清單] 視窗中。
公用方法 WriteLine(String, LogCategory, String, Int32, Int32, String) 使用指定的分類、錯誤位置資訊及 Help 關鍵字,將訊息寫入 [輸出] 視窗或 [錯誤清單] 視窗中。

回頁首

備註

記錄服務可讓 SharePoint 命令將訊息寫至 [輸出] 視窗或 [錯誤清單] 視窗。

在 [輸出] 視窗中,所有訊息都會都寫入至 [SharePoint 工具] 輸出窗格,只有從部署擴充寫入除外。 在部署擴充中,訊息會寫入至 [建置] 輸出窗格。

請參閱

參考

Microsoft.VisualStudio.SharePoint.Commands 命名空間

其他資源

呼叫 SharePoint 物件模型

HOW TO:建立 SharePoint 命令