System.Web 2.0.0.0 System.Object

The object encapsulates the trace message, category, any associated , and whether the trace record was written by the method.

Every call to the and methods generates a object that is added to the messages collection. You can access the collection of records by handling the event.

Represents an ASP.NET trace message and any associated data.

- Constructor
  2.0.0.0

  Every call to the and methods generates a object that is added to the messages collection. The method call sets the property to true, while the method calls set it to false.

  Initializes a new instance of the class.

  The trace category that receives the message.
  The trace message.
  true if the method associated with the is the method; false if the tracing method is the method.
  A object that contains additional error information.
- Property
  2.0.0.0
  System.String To be added.

  The category is used to better organize trace messages into recognizable groups, but can be any string. The class uses as its default category for methods that take only a parameter. The default category for ASP.NET, which writes several trace records when tracing is enabled, is "aspx.page".

  Gets the user-defined category for the trace record.

- Property
  2.0.0.0
  System.Exception To be added.

  You can include an exception in a trace record if you are using tracing to debug an application or troubleshoot error and exception handling. The property is null when the trace record is associated with one of the methods that does not have an explicit parameter or no exception is provided.

  Gets the associated with the trace record, if one is available.

- Property
  2.0.0.0
  System.Boolean To be added. To be added.

  Gets a value indicating whether the trace record is associated with a method call.

- Property
  2.0.0.0
  System.String To be added.

  The message can be any string, and is used to write detailed tracing information. It corresponds to the message parameter that is passed to the and methods. The information can be run-time values, messages to orient you and guide you through a program's execution, or other diagnostic data.

  Gets the user-defined trace message.