TeamFoundationTrace.ErrorIf Method (Boolean, String)

Conditionally write a message to the trace output.

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

Syntax

'宣言
Public Shared Sub ErrorIf ( _
    condition As Boolean, _
    info As String _
)
public static void ErrorIf(
    bool condition,
    string info
)
public:
static void ErrorIf(
    bool condition, 
    String^ info
)
static member ErrorIf : 
        condition:bool * 
        info:string -> unit 
public static function ErrorIf(
    condition : boolean, 
    info : String
)

Parameters

  • condition
    Type: System.Boolean
    Condition that will cause the message to be written, if true.
  • info
    Type: System.String
    The text message to write to the trace output.

.NET Framework Security

See Also

Reference

TeamFoundationTrace Class

ErrorIf Overload

Microsoft.TeamFoundation Namespace