Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Logs an error message.
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 _
)
public abstract void LogError(
DataCollectionContext context,
string text
)
public:
virtual void LogError(
DataCollectionContext^ context,
String^ text
) abstract
abstract LogError :
context:DataCollectionContext *
text:string -> unit
public abstract function LogError(
context : DataCollectionContext,
text : String
)
Parameters
- context
Type: Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext
The DataCollectionContext in which the message is sent.
- text
Type: System.String
The error text. 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.