TeamFoundationTrace.ErrorIf Method (Boolean, String, Object[])

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 format,
	params Object[] args
)

Parameters

condition
Type: System.Boolean

Condition that will cause the message to be written, if true.

format
Type: System.String

The string format to which args is applied.

args
Type: System.Object[]

One or more arguments.

Uses General keyword, level Error

Show: