ActivityLog.TryLogInformation(String, String) 方法

定义

在活动日志中记录具有给定源的信息消息。

public:
 static bool TryLogInformation(System::String ^ source, System::String ^ message);
public:
 static bool TryLogInformation(Platform::String ^ source, Platform::String ^ message);
 static bool TryLogInformation(std::wstring const & source, std::wstring const & message);
public static bool TryLogInformation (string source, string message);
static member TryLogInformation : string * string -> bool
Public Shared Function TryLogInformation (source As String, message As String) As Boolean

参数

source
String

与构成消息的源关联的名称。

message
String

要写入活动日志的消息。

返回

Boolean

如果日志记录操作成功,则为 True。 否则为 False。

适用于