ActivityLog.TryLogInformation(String, String) Methode

Definition

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

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

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