ISharePointCommandLogger.WriteLine 方法 (String, LogCategory, String)

使用指定类别和“帮助”关键字,向**“输出”窗口或“错误列表”**窗口中写入消息。

命名空间:  Microsoft.VisualStudio.SharePoint.Commands
程序集:  Microsoft.VisualStudio.SharePoint.Commands(在 Microsoft.VisualStudio.SharePoint.Commands.dll 中)

语法

声明
Sub WriteLine ( _
    message As String, _
    category As LogCategory, _
    helpKeyword As String _
)
void WriteLine(
    string message,
    LogCategory category,
    string helpKeyword
)

参数

  • category
    类型:Microsoft.VisualStudio.SharePoint.Commands.LogCategory
    消息的类别。它指定消息是显示在**“输出”窗口中还是“错误列表”窗口中(或同时显示在这两个窗口中),以及消息显示在“错误列表”**窗口中的何处。
  • helpKeyword
    类型:System.String
    此错误的“帮助”关键字。

.NET Framework 安全性

请参见

参考

ISharePointCommandLogger 接口

WriteLine 重载

Microsoft.VisualStudio.SharePoint.Commands 命名空间