System.Web.TraceContextRecord Class

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

See Also: TraceContextRecord Members


public sealed class TraceContextRecord


The System.Web.TraceContextRecord object encapsulates the trace message, category, any associated Exception, and whether the trace record was written by the erload:System.Web.TraceContext.Warn method.

Every call to the erload:System.Web.TraceContext.Write and erload:System.Web.TraceContext.Warn methods generates a System.Web.TraceContextRecord object that is added to the TraceContextEventArgs.TraceRecords messages collection. You can access the collection of records by handling the TraceContext.TraceFinished event.


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