Trace.WriteLine



 







using System;

using System.Data;

using System.Data.SqlClient;

using System.Threading;

using System.Diagnostics;

class MainClass {



    static void Main() {

        Trace.WriteLine("Entered Main()");



        for (int i = 0; i < 6; i++)

            Trace.WriteLine(i);



        Trace.WriteLine("Exiting from Main()");

    }

}



 

One Response to “Trace.WriteLine”

  1. Prasad Says:

    How to create the log file which can be used to store the TRACE messgaes?

Leave a Reply