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^, 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:
void LogError(
	DataCollectionContext^ context,
	Exception^ exception
)

Parameters

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

The DataCollectionContext in which the message is sent.

exception
Type: System::Exception^

The exception. Cannot be null.

Return to top
Show: