Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What?s the difference between the Debug class and Trace
class?

Answer Posted / vinay panchal

There are two Trace classes in the Microsoft .NET Framework
library: System.Diagnostics.Trace and
System.Web.TraceContext. These Trace classes are frequently
confused with each other. However, each one is used for a
specific purpose.

You typically use the System.Diagnostics.Trace class to
debug console applications or Windows Forms applications.
You use System.Web.TraceContext only in Microsoft ASP.NET
applications. To display Trace.Write statements on an
ASP.NET page from a Class Library, you must use the
System.Web namespace. The following examples describe how to
use Trace.Write from a Class Library in an ASP.NET application.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Reflection in .NET? Namespace? How will you load an assembly which is not referenced by current assembly?

978


What is native image generator (ngen.exe)?

1229


What is the signature of a method?

929


Are all methods virtual in c#?

947


Explain About CLS?

974


Is array reference type in c#?

890


Is string a class in c#?

843


What is the difference between integer and double?

922


What is the use of base keyword? Tell me a practical example for base keyword’s usage?

926


What is the relationship between a process, application domain, and application?

963


What does out mean c#?

959


What is predicate builder?

928


What is private virtual in C#?

1013


What is the real use of interface in c#?

933


How to force my .net app to run as administrator on windows 7?

975