Debug.WriteIf Method

 

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

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticWriteIf(Boolean, Object)

Writes the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true.

System_CAPS_pubmethodSystem_CAPS_staticWriteIf(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.

System_CAPS_pubmethodSystem_CAPS_staticWriteIf(Boolean, String)

Writes a message to the trace listeners in the Listeners collection if a condition is true.

System_CAPS_pubmethodSystem_CAPS_staticWriteIf(Boolean, String, String)

Writes a category name and message to the trace listeners in the Listeners collection if a condition is true.

Return to top
Show: