This documentation is archived and is not being maintained.

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)

public:
static void ErrorIf(
	bool condition, 
	String^ info
)

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.

Uses General keyword, level Error

Show: