This documentation is archived and is not being maintained.

Debug.WriteLineIf Method

Writes information about the debug to the trace listeners in the Listeners collection if a condition is true.

Name Description
Debug.WriteLineIf (Boolean, Object) Writes the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true.

Supported by the .NET Compact Framework.

Debug.WriteLineIf (Boolean, String) Writes a message to the trace listeners in the Listeners collection if a condition is true.

Supported by the .NET Compact Framework.

Debug.WriteLineIf (Boolean, Object, String) Writes a category name and the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true.

Supported by the .NET Compact Framework.

Debug.WriteLineIf (Boolean, String, String) Writes a category name and message to the trace listeners in the Listeners collection if a condition is true.

Supported by the .NET Compact Framework.

Show: