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.

Trace.WriteLineIf Method

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

Name Description
Trace.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.
Trace.WriteLineIf (Boolean, String) Writes a message to the trace listeners in the Listeners collection if a condition is true.
Trace.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.
Trace.WriteLineIf (Boolean, String, String) Writes a category name and message to the trace listeners in the Listeners collection if a condition is true.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft