System.Web.TraceContextEventArgs.TraceRecords Property

Gets a collection of System.Web.TraceContextRecord messages that are associated with the current request.

Syntax

public ICollection TraceRecords { get; }

Value

Documentation for this section has not yet been entered.

Remarks

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. The erload:System.Web.TraceContext.Warn method call sets the TraceContextRecord.IsWarning property to true, while the other method calls set it to false.

You can iterate through the TraceContextEventArgs.TraceRecords messages and examine records with specific categories or messages, and whether they are warnings.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0