System.Diagnostics.TraceEventCache Class

Provides trace event data specific to a thread and a process.

See Also: TraceEventCache Members


public class TraceEventCache



The System.Diagnostics.TraceEventCache class, designed as a performance optimization for trace listener calls, is of interest only to developers creating custom trace listeners.

The System.Diagnostics.TraceEventCache class is used as a parameter in tracing methods to accurately identify the source of a trace event. Examples of methods that use System.Diagnostics.TraceEventCache are TraceListener.TraceEvent(TraceEventCache, string, TraceEventType, int, string) and TraceFilter.ShouldTrace(TraceEventCache, string, TraceEventType, int, string, Object[], object, Object[]). The TraceEventCache.LogicalOperationStack property contains data that can be used to correlate the trace with related traces.


Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions:,