This documentation is archived and is not being maintained.

TeamFoundationTrace::WarningIf Method (Boolean, String, array<Object>)

Conditionally writes a warning message to the trace output.

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

public:
static void WarningIf(
	bool condition, 
	String^ format, 
	... array<Object^>^ args
)

Parameters

condition
Type: System::Boolean

The condition that causes the message to be written to the trace output, if true.

format
Type: System::String

The string format to which args is applied.

args
Type: array<System::Object>

One or more arguments.

Uses the General category and Warning level.

Show: