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) 使用指定类别和“帮助”关键字,向“输出”窗口或“错误列表”窗口中写入消息。
公共方法 WriteLine(String, LogCategory, String, Int32, Int32) 使用指定的类别和错误位置信息,向“输出”窗口或“错误列表”窗口中写入消息。
公共方法 WriteLine(String, LogCategory, String, Int32, Int32, String) 使用指定的类别、错误位置信息和 Help 关键字,向“输出”窗口或“错误列表”窗口中写入消息。

页首

备注

日志记录服务使 SharePoint 命令可以将消息写入**“输出”窗口或“错误列表”**窗口。

在**“输出”** 窗口中,除了从部署扩展写入消息之外,所有消息都写入**“SharePoint 工具”输出窗格。 在部署扩展中,消息写入到“生成”**输出窗格。

请参见

参考

Microsoft.VisualStudio.SharePoint.Commands 命名空间

其他资源

调入 SharePoint 对象模型

如何:创建 SharePoint 命令