Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft