
TraceContext | 513
System.Web
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Returned By
ProcessInfo.ShutdownReason
Passed To
ProcessInfo.{ProcessInfo( ), SetAll( )}
ProcessStatus
System.Web (system.web.dll)
serializable
enum
This enumeration is used by the ProcessInfo class to indicate the status of a process.
Hierarchy
System.Object ➝ System.ValueType ➝ System.Enum(System.IComparable, System.IFor-
mattable, System.IConvertible)
➝ ProcessStatus
Returned By
ProcessInfo.Status
Passed To
ProcessInfo.{ProcessInfo( ), SetAll( )}
TraceContext
System.Web (system.web.dll)
sealed class
The TraceContext class allows you display trace messages that can help you debug ASP.NET
applications. To enable tracing for a specific page, insert the page directive Trace="True" in
the ASPX file or set the IsEnabled property of the TraceContext class in your code-behind
module.
The TraceContext class provides two methods: Write( ) and Warn( ). Both display a message in
the current page’s trace log, but Warn( ) uses red lettering that is meant to indicate
exception information. You can invoke the Write( ) or Warn( ) method with a category
string and message string. Often, the category string indicates the position in the code
(”In FunctionA”), while the message string indicates specific information (”Exception
while opening database”). Additionally, an overloaded ...