Debug.WriteIf Method |
System.Diagnostics.Debug
Debug.WriteIf( condition, message [, Category ])
or:
Debug.WriteIf( condition, value [, Category ])
Condition required for output to proceed
The string to be sent to the Output window, or the object whose name is to be sent to the Output window
An object whose name is to be sent to the Output window
A category name used to group output messages
Prints text in the Output window in the design-time environment, provided that condition is True
This method behaves identically to Debug.Write, with the exception that nothing is output unless condition is True .
Debug.Write Method, Debug.WriteLine Method, Debug.WriteLineIf Method