System.Web.TraceContext Members

The members of System.Web.TraceContext are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Web.TraceContext class.

Public Properties

IsEnabledbool.

Gets or sets a value indicating whether tracing is enabled for the current Web request.

TraceModeTraceMode.

Gets or sets the sorted order in which trace messages should be output to a requesting browser.

Public Methods

Warn(string)

Writes a trace message to the trace log. All warnings appear in the log as red text.

Warn(string, string)

Writes trace information to the trace log, including any user-defined categories and trace messages. All warnings appear in the log as red text.

Warn(string, string, Exception)

Writes trace information to the trace log, including any user-defined categories, trace messages, and error information. All warnings appear in the log as red text.

Write(string)

Writes a trace message to the trace log.

Write(string, string)

Writes trace information to the trace log, including a message and any user-defined categories.

Write(string, string, Exception)

Writes trace information to the trace log, including any user-defined categories, trace messages, and error information.

Public Events

TraceFinished

Raised by the System.Web.TraceContext object to expose trace messages after all request information is gathered.