Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataCollectionLogger::LogError Method (DataCollectionContext^, String^, Exception^)

 

Logs an error message for an exception.

Namespace:   Microsoft.VisualStudio.TestTools.Execution
Assembly:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)

public:
virtual void LogError(
	DataCollectionContext^ context,
	String^ text,
	Exception^ exception
) abstract

Parameters

context
Type: Microsoft.VisualStudio.TestTools.Execution::DataCollectionContext^

The DataCollectionContext in which the message is sent.

text
Type: System::String^

Text that explains the exception. Cannot be null.

exception
Type: System::Exception^

The exception. Cannot be null.

Return to top
Show: