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
)
参数
- message
类型:System.String
消息文本。
- category
类型:Microsoft.VisualStudio.SharePoint.Commands.LogCategory
消息的类别。它指定消息是显示在**“输出”窗口中还是“错误列表”窗口中(或同时显示在这两个窗口中),以及消息显示在“错误列表”**窗口中的何处。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。