ActivityLog.TryLogError(String, String) Método

Definição

Registra uma mensagem de erro no log de atividades com a origem fornecida.

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

Parâmetros

source
String

Um nome associado à fonte que está contribuindo com a mensagem.

message
String

A mensagem a ser gravada no log de atividades.

Retornos

Boolean

True se a operação de log tiver êxito. De outra forma, falso.

Aplica-se a