See Also: TraceEventCache Members
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.