다음을 통해 공유


ActivityLog.TryLogInformation(String, String) Method

Definition

Logs an information message in the activity log with the given source.

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

Parameters

source
String

A name associated with the source contributing the message.

message
String

The message to be written to the activity log.

Returns

True if the logging operation succeeded. False otherwise.

Applies to