ActivityLog.LogWarning 方法

记录在事件日志的警告消息与特定源。

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

语法

声明
Public Shared Sub LogWarning ( _
    source As String, _
    message As String _
)
public static void LogWarning(
    string source,
    string message
)

参数

  • source
    类型:System.String
    名称与提供消息的数据源。
  • message
    类型:System.String
    向事件日志要写入的消息。

备注

,如果 SVsActivityLog 服务不可用,此方法可能会引发异常。

.NET Framework 安全性

请参见

参考

ActivityLog 类

Microsoft.VisualStudio.Shell 命名空间