ActivityLog.LogError(String, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在活动日志中记录具有给定源的错误消息。
public:
static void LogError(System::String ^ source, System::String ^ message);
public:
static void LogError(Platform::String ^ source, Platform::String ^ message);
static void LogError(std::wstring const & source, std::wstring const & message);
public static void LogError (string source, string message);
static member LogError : string * string -> unit
Public Shared Sub LogError (source As String, message As String)
参数
- source
- String
与构成消息的源关联的名称。
- message
- String
要写入活动日志的消息。
注解
如果 SVsActivityLog 服务不可用,或 LogEntry 方法失败,则会引发。