Add DefaultTraceListener to Trace : Trace Listener : Development C# Examples


C# Examples » Development » Trace Listener »

 

Add DefaultTraceListener to Trace









    
using  System;
using  System.Collections.Generic;
using  System.Diagnostics;
using  System.Text;


public  class  MainClass
{
        public  static  void  Main()
        {
                DefaultTraceListener  dtl  =  new  DefaultTraceListener();
                dtl.AssertUiEnabled  =  true;
                Trace.Listeners.Add(dtl);

        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Development
» Trace Listener