Delen via


TeamFoundationTrace.TraceException Method (String, String, 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 ( _
    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.

Remarks

Uses the General category and Error level.

.NET Framework Security

See Also

Reference

TeamFoundationTrace Class

TraceException Overload

Microsoft.TeamFoundation Namespace