ISharePointProjectLogger 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表 SharePoint 記錄服務,可讓 SharePoint 專案延伸模組根據指定的 LogCategory,將訊息記錄到 [輸出] 視窗和 [錯誤清單]。
public interface class ISharePointProjectLogger
public interface ISharePointProjectLogger
type ISharePointProjectLogger = interface
Public Interface ISharePointProjectLogger
備註
所有記錄的訊息都會移至 [SharePoint 工具] [輸出] 視窗窗格,但執行部署時除外,當訊息重新導向至 [輸出] 視窗中的 [VS “Build” 窗格時。
方法
ActivateOutputWindow() |
開啟 [輸出] 視窗並啟用目前的 [輸出] 視窗窗格。 |
ClearErrorList() |
清除所有 SharePoint 工具相關錯誤訊息的 [錯誤清單]。 |
GetNewSubcategoryId() |
傳回可用來記錄和移除錯誤清單中的訊息的子類別識別碼。 |
RemoveMessages(Int32) |
根據訊息的子類別,移除錯誤清單中的訊息。 |
WriteLine(String, LogCategory) |
根據指定的 ,將訊息記錄至 SharePoint 工具的 [輸出]LogCategory 視窗和 [錯誤清單] 中。 |
WriteLine(String, LogCategory, Int32) |
根據指定的 LogCategory,將訊息記錄到 SharePoint [工具] 輸出窗格和 [錯誤清單] 中 |
WriteLine(String, LogCategory, String) |
根據指定的 ,將訊息記錄至 SharePoint 工具的 [輸出]LogCategory 視窗和 [錯誤清單] 中。 |
WriteLine(String, LogCategory, String, Int32) |
根據指定的 LogCategory,將訊息記錄到 SharePoint [工具] 輸出窗格和 [錯誤清單] 中。 |
WriteLine(String, LogCategory, String, Int32, Int32) |
根據指定的 ,將訊息記錄至 SharePoint 工具的 [輸出]LogCategory 視窗和 [錯誤清單] 中。 |
WriteLine(String, LogCategory, String, Int32, Int32, Int32) |
根據指定的 LogCategory,將訊息記錄到 SharePoint [工具] 輸出窗格和 [錯誤清單] 中。 |
WriteLine(String, LogCategory, String, Int32, Int32, String) |
根據指定的 ,將訊息記錄至 SharePoint 工具的 [輸出]LogCategory 視窗和 [錯誤清單] 中。 |
WriteLine(String, LogCategory, String, Int32, Int32, String, Int32) |
根據指定的 LogCategory,將訊息記錄到 SharePoint [工具] 輸出窗格和 [錯誤清單] 中。 |