ActivityLog.TryLogWarning(String, String) Method

Definition

Logs a warning message in the activity log with the given source.

public:
 static bool TryLogWarning(System::String ^ source, System::String ^ message);
public:
 static bool TryLogWarning(Platform::String ^ source, Platform::String ^ message);
 static bool TryLogWarning(std::wstring const & source, std::wstring const & message);
public static bool TryLogWarning (string source, string message);
static member TryLogWarning : string * string -> bool
Public Shared Function TryLogWarning (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