TeamFoundationTrace.Error Method (TraceType, String)
Trace an error if the error level is set for the specified category.
Namespace: Microsoft.TeamFoundation
Assembly: Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
Syntax
'Declaration
Public Shared Sub Error ( _
traceCategory As TraceType, _
info As String _
)
public static void Error(
TraceType traceCategory,
string info
)
public:
static void Error(
TraceType traceCategory,
String^ info
)
static member Error :
traceCategory:TraceType *
info:string -> unit
public static function Error(
traceCategory : TraceType,
info : String
)
Parameters
- traceCategory
Type: Microsoft.TeamFoundation.TraceType
The trace category used for reporting the trace.
- info
Type: System.String
The message to write.
.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.