Share via


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)

Syntax

'Declaration
Public Sub LogError ( _
    context As DataCollectionContext, _
    exception As Exception _
)
public void LogError(
    DataCollectionContext context,
    Exception exception
)
public:
void LogError(
    DataCollectionContext^ context, 
    Exception^ exception
)
member LogError : 
        context:DataCollectionContext * 
        exception:Exception -> unit
public function LogError(
    context : DataCollectionContext, 
    exception : Exception
)

Parameters

  • exception
    Type: Exception

    The exception. Cannot be nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

DataCollectionLogger Class

LogError Overload

Microsoft.VisualStudio.TestTools.Execution Namespace

DataCollectionContext

LogError