This topic has not yet been rated - Rate this topic

Trace.WriteIf Method

Writes information about the trace to the trace listeners in the Listeners collection if a condition is true.
Name Description
Trace.WriteIf (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.WriteIf (Boolean, String) Writes a message to the trace listeners in the Listeners collection if a condition is true.
Trace.WriteIf (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.WriteIf (Boolean, String, String) Writes a category name and message to the trace listeners in the Listeners collection if a condition is true.
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.