Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- traceCategory
Type: Microsoft.TeamFoundation.TraceType
The trace category to report the trace under.
- category
Type: System.String
Application defined functional category. May be null.
- method
Type: System.String
Application defined method. May be null.
- exception
Type: System.Exception
The exception to write.
Remarks
If the specified category is not tracing error messages, then it should be traced to General instead.
.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.