共用方式為


TeamFoundationTrace.Error Method (String, array<Object )

Writes a message to the trace output.

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

Syntax

'Declaration
Public Shared Sub Error ( _
    format As String, _
    ParamArray args As Object() _
)
public static void Error(
    string format,
    params Object[] args
)
public:
static void Error(
    String^ format, 
    ... array<Object^>^ args
)
static member Error : 
        format:string * 
        args:Object[] -> unit
public static function Error(
    format : String, 
    ... args : Object[]
)

Parameters

  • 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

See Also

Reference

TeamFoundationTrace Class

Error Overload

Microsoft.TeamFoundation Namespace