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)

Syntax

'Declaration
Public MustOverride Sub LogError ( _
    context As DataCollectionContext, _
    text As String, _
    exception As Exception _
)
public abstract void LogError(
    DataCollectionContext context,
    string text,
    Exception exception
)
public:
virtual void LogError(
    DataCollectionContext^ context, 
    String^ text, 
    Exception^ exception
) abstract
abstract LogError : 
        context:DataCollectionContext * 
        text:string * 
        exception:Exception -> unit 
public abstract function LogError(
    context : DataCollectionContext, 
    text : String, 
    exception : Exception
)

Parameters

  • text
    Type: System.String
    Text that explains the exception. Cannot be nulla null reference (Nothing in Visual Basic).
  • exception
    Type: System.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