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
context
Type: Microsoft.VisualStudio.TestTools.Execution.DataCollectionContextThe DataCollectionContext in which the message is sent.
exception
Type: ExceptionThe exception. Cannot be nulla null reference (Nothing in Visual Basic).
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.