ActivityLog.TryLogInformation(String, String) Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
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
True, wenn der Protokollierungs Vorgang erfolgreich war. Andernfalls FALSE.