Writes a message to the trace listeners in the Trace.Listeners collection if a condition is true.
By default, the output is written to an instance of System.Diagnostics.DefaultTraceListener.
This method calls the TraceListener.Write(string) method of the trace listener.