Export (0) Print
Expand All

TraceContext Class

Captures and presents execution details about a Web request. This class cannot be inherited.

For a list of all members of this type, see TraceContext Members.

System.Object
   System.Web.TraceContext

[Visual Basic]
NotInheritable Public Class TraceContext
[C#]
public sealed class TraceContext
[C++]
public __gc __sealed class TraceContext
[JScript]
public class TraceContext

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

You can use this class to append messages to specific trace categories. For example, if you are creating an instance of the Calendar class for your application, you might include the trace message "Starting To Render" in a rendering procedure, and "Firing OnChange Event" in an event handler procedure.

To enable tracing, set the Trace attribute in the @ Page directive or the IsEnabled property. When tracing is enabled, in addition to showing user-provided trace content, the Page class automatically includes performance data, control-tree structure information, and state management content.

Requirements

Namespace: System.Web

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

Assembly: System.Web (in System.Web.dll)

See Also

TraceContext Members | System.Web Namespace

Show:
© 2014 Microsoft