Question:You are creating a Console application, and you want Debug and Trace output displayed directly to the console. Which code sample does this correctly? 

A Debug.Listeners.Add(New DefaultTraceListener())
Debug.AutoFlush = True 

B Debug.Listeners.Add(New ConsoleTraceListener())
Debug.AutoFlush = True
 

C Debug.Listeners.Add(New EventLogTraceListener())
Debug.AutoFlush = True
 

D Debug.Listeners.Add(New XmlWriterTraceListener())
Debug.AutoFlush = True
 

+ Answer
+ Report
Total Preview: 1159

Copyright © 2024. Powered by Intellect Software Ltd