Home > Articles

  • Print
  • + Share This
This chapter is from the book

Reference

This section provides a quick reference to the key objects described in this chapter. Space constraints prevent us from documenting every object in the .NET framework in this book. For the sake of brevity and conciseness, we include only the most important objects here. For more information on the other objects in the .NET framework, consult the .NET Framework Reference online help file.

This chapter covers the debugging, performance-monitoring, and event-logging classes in ASP.NET. The following sections provide a brief reference to the properties, methods, and events provided by those classes.

Debug Class

Member of System.Diagnostics.

The Debug object gives developers access to a number of useful tools to manage the debugging process.

It is not necessary to instantiate a Debug object; an instance of the object is always available in an ASP.NET page.

Properties

 

AutoFlush

IndentSize

IndentLevel

Listeners


Methods

 

 

Assert

Indent

WriteLine

Close

Unindent

WriteLineIf

Fail

Write

 

Flush

WriteIf

 


EventLog Class

Member of System.Diagnostics.

The EventLog class is used to read and write information from the Windows event log. This is used primarily to record diagnostic information pertaining to an application, particularly failure information.

Properties

 

 

Container

Events

Site

DesignMode

Log

Source

EnableRaisingEvents

LogDisplayName

SynchronizingObject

Entries

MachineName

 


Methods

 

 

BeginInit

EndInit

InitializeLifetimeService

Clear

Equals

LogNameFromSourceName

Close

Exists

MemberwiseClone

CreateEventSource

Finalize

SourceExists

CreateObjRef

GetEventLogs

ToString

Delete

GetHashCode

WriteEntry

DeleteEventSource

GetLifetimeService

 

Dispose

GetService

 

 

GetType

 


Events

 

Disposed

EntryWritten


PerformanceCounter Class

Member of System.Diagnostics.

You create an instance of this class to expose your application's performance information to performance monitors.

Properties

 

 

CategoryName

CounterType

MachineName

Container

DesignMode

RawValue

CounterHelp

Events

ReadOnly

CounterName

InstanceName

Site


Methods

 

 

BeginInit

Equals

InitializeLifetimeService

Close

Finalize

MemberwiseClone

CloseSharedResource

GetHashCode

NextSample

CreateObjRef

GetLifetimeService

NextValue

Decrement

GetService

RemoveInstance

Dispose

GetType

ToString

 

Increment

 

EndInit

IncrementBy

 


Events

Disposed


TraceContext Class

Member of System.Web.

TraceContext provides Trace mode functionality in ASP.NET Web application development. It is typically accessed as the Trace object contained by the ASP.NET Page object.

Properties

 

IsEnabled

TraceMode


Methods

 

 

Equals

GetType

Warn

Finalize

MemberwiseClone

Write

GetHashCode

ToString

 


  • + Share This
  • 🔖 Save To Your Account