This documentation is archived and is not being maintained.

TeamFoundationTrace::WarningIf Method (Boolean, String)

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^ info
)

Parameters

condition
Type: System::Boolean

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

info
Type: System::String

The message to write.

Uses the General category and Warning level.

Show: