ActivityLog.TryLogInformation(String, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在活动日志中记录具有给定源的信息消息。
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
要写入活动日志的消息。
返回
如果日志记录操作成功,则为 True。 否则为 False。