ActivityLog::TryLogError Method (String^, String^)

Visual Studio 2015
 

Logs an error message in the activity log with the given source.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
static bool TryLogError(
	String^ source,
	String^ message
)

Parameters

source
Type: System::String^

A name associated with the source contributing the message.

message
Type: System::String^

The message to be written to the activity log.

Return Value

Type: System::Boolean

True if the logging operation succeeded, otherwise false.

Return to top
Show: