TeamFoundationTrace.TraceException Method (TraceType, Exception)
Write an exception to the trace output with the specified category.
Namespace: Microsoft.TeamFoundation
Assembly: Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
Syntax
'Declaration
Public Shared Sub TraceException ( _
traceCategory As TraceType, _
exception As Exception _
)
public static void TraceException(
TraceType traceCategory,
Exception exception
)
public:
static void TraceException(
TraceType traceCategory,
Exception^ exception
)
static member TraceException :
traceCategory:TraceType *
exception:Exception -> unit
public static function TraceException(
traceCategory : TraceType,
exception : Exception
)
Parameters
- traceCategory
Type: Microsoft.TeamFoundation.TraceType
The trace category.
- exception
Type: System.Exception
The exception to trace.
Remarks
Uses the General category and Error level.
.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.