ActivityLog.TryLogError(String, String) Methode

Definition

Protokolliert eine Fehlermeldung im Aktivitätsprotokoll mit der angegebenen Quelle.

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

Parameter

source
String

Ein Name, der der Quelle zugeordnet ist, die die Meldung beiträgt.

message
String

Die Meldung, die ins Aktivitätsprotokoll geschrieben werden soll.

Gibt zurück

Boolean

True, wenn der Protokollierungs Vorgang erfolgreich war. Andernfalls FALSE.

Gilt für