DataCollectionLogger.LogException Method
Namespace: Microsoft.VisualStudio.TestTools.Execution
Assembly: Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)
Syntax
'Declaration
Public Overridable Sub LogException ( _
context As DataCollectionContext, _
ex As Exception, _
level As DataCollectorMessageLevel _
)
public virtual void LogException(
DataCollectionContext context,
Exception ex,
DataCollectorMessageLevel level
)
public:
virtual void LogException(
DataCollectionContext^ context,
Exception^ ex,
DataCollectorMessageLevel level
)
abstract LogException :
context:DataCollectionContext *
ex:Exception *
level:DataCollectorMessageLevel -> unit
override LogException :
context:DataCollectionContext *
ex:Exception *
level:DataCollectorMessageLevel -> unit
public function LogException(
context : DataCollectionContext,
ex : Exception,
level : DataCollectorMessageLevel
)
Parameters
- ex
Type: Exception
.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.