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 a message to the trace output using the specified category.
Namespace:  Microsoft.TeamFoundation
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
Syntax
'Declaration
Public Shared Sub Error ( _
    traceCategory As TraceType, _
    format As String, _
    ParamArray args As Object() _
)
public static void Error(
    TraceType traceCategory,
    string format,
    params Object[] args
)
public:
static void Error(
    TraceType traceCategory, 
    String^ format, 
    ... array<Object^>^ args
)
static member Error : 
        traceCategory:TraceType * 
        format:string * 
        args:Object[] -> unit 
public static function Error(
    traceCategory : TraceType, 
    format : String, 
    ... args : Object[]
)
Parameters
- traceCategory
 Type: Microsoft.TeamFoundation.TraceType
 The category corresponding to the trace switch.
- format
 Type: System.String
 The string format to which args is applied.
- args
 Type: array<System.Object[]
 One or more arguments for the error.
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.