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 ( _
    message As String, _
    method As String, _
    exception As Exception _
)
public static void TraceException(
    string message,
    string method,
    Exception exception
)
public:
static void TraceException(
    String^ message, 
    String^ method, 
    Exception^ exception
)
static member TraceException : 
        message:string * 
        method:string * 
        exception:Exception -> unit
public static function TraceException(
    message : String, 
    method : String, 
    exception : Exception
)
Parameters
- message 
 Type: System.String- An application defined category. May be null. 
- method 
 Type: System.String- An application defined method. May be null. 
- 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.