VB.NET - What is trace? Describe its working

What is trace? Describe its working.

Trace produces messages about program conditions even after application is compiled and released without interrupting application execution.

It's Working

1. Steps to add Trace in the code.
2. Create an instance of TextWriterTraceListener and add it to the Listeners collection.
3. Configure the TextWriterTraceListener to write output to a text file.
4. Create Trace switches that control when Trace statements are executed.
5. Compile and deploy the application with Trace defined.
6. Enable the Trace switches in the application .config file.
Exception handling in VB.NET
Exception handling in VB.NET - The Try block encapsulate set of code that is error prone and can throw exception......
VB.NET - What is data provider? Explain its components.
VB.NET - What is data provider? Explain its components - Data Provider is a set of components that facilitate data access.......
DataReader and DataAdapter in ADO.NET
VB.NET - DataReader and DataAdapter in ADO.NET - DataReader: It is lightweight class that provides connected and forward-only data access......
Post your comment