Bagikan melalui


TeamFoundationTrace.Error Method (TraceType, String, String, Exception)

Write an exception, functional category and method to the trace output.

Namespace:  Microsoft.TeamFoundation
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)

Syntax

'Declaration
Public Shared Sub Error ( _
    traceCategory As TraceType, _
    category As String, _
    method As String, _
    exception As Exception _
)
public static void Error(
    TraceType traceCategory,
    string category,
    string method,
    Exception exception
)
public:
static void Error(
    TraceType traceCategory, 
    String^ category, 
    String^ method, 
    Exception^ exception
)
static member Error : 
        traceCategory:TraceType * 
        category:string * 
        method:string * 
        exception:Exception -> unit 
public static function Error(
    traceCategory : TraceType, 
    category : String, 
    method : String, 
    exception : Exception
)

Parameters

  • category
    Type: System.String
    Application defined functional category. May be null.
  • method
    Type: System.String
    Application defined method. May be null.

Remarks

If the specified category is not tracing error messages, then it should be traced to General instead.

.NET Framework Security

See Also

Reference

TeamFoundationTrace Class

Error Overload

Microsoft.TeamFoundation Namespace