Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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:
© 2015 Microsoft