Conditionally write a message to the trace output.
Namespace:  Microsoft.TeamFoundation
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
Syntax
'Declaration
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. 
Remarks
Uses General keyword, level Error
.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.