TraceEventCache.LogicalOperationStack Property


Gets the correlation data, contained in a stack.

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

public Stack LogicalOperationStack { get; }

Property Value

Type: System.Collections.Stack

A Stack containing correlation data.

The correlation data is stored as an object in the call context with the name "System.Diagnostics.Trace.CorrelationManagerSlot". The CorrelationManager class provides methods used to store a logical operation identity in a thread-bound context and automatically tag each trace event generated by the thread with the stored identity. The CorrelationManager is accessed through the Trace.CorrelationManager property. Each call to the StartLogicalOperation method pushes a new logical operation identity onto the stack. Each call to the StopLogicalOperation method pops a logical operation identity from the stack

.NET Framework
Available since 2.0
Return to top