ISharePointProjectLogger 接口

定义

表示 SharePoint 日志记录服务,该服务使 SharePoint 项目扩展能够将消息记录到“输出”窗口和“错误列表”中,具体取决于指定的 LogCategory

public interface class ISharePointProjectLogger
public interface ISharePointProjectLogger
type ISharePointProjectLogger = interface
Public Interface ISharePointProjectLogger

注解

所有记录的消息都转到“SharePoint 工具”输出窗口窗格,执行部署时除外,当消息重新定向到“输出”窗口中的 VS“生成”窗格时除外。

方法

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 工具的输出窗格和错误列表上。

适用于