TraceEventCache.LogicalOperationStack Property

Definition

Gets the correlation data, contained in a stack.

public:
 property System::Collections::Stack ^ LogicalOperationStack { System::Collections::Stack ^ get(); };
public System.Collections.Stack LogicalOperationStack { get; }
member this.LogicalOperationStack : System.Collections.Stack
Public ReadOnly Property LogicalOperationStack As Stack

Property Value

A Stack containing correlation data.

Remarks

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

Applies to