ISharePointCommandLogger.WriteLine 方法 (String, LogCategory)

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

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

语法

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

参数

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

.NET Framework 安全性

请参见

参考

ISharePointCommandLogger 接口

WriteLine 重载

Microsoft.VisualStudio.SharePoint.Commands 命名空间