Trace.CorrelationManager 属性

定义

获取此跟踪的线程的相关管理器。Gets the correlation manager for the thread for this trace.

public:
 static property System::Diagnostics::CorrelationManager ^ CorrelationManager { System::Diagnostics::CorrelationManager ^ get(); };
public static System.Diagnostics.CorrelationManager? CorrelationManager { get; }
public static System.Diagnostics.CorrelationManager CorrelationManager { get; }
member this.CorrelationManager : System.Diagnostics.CorrelationManager
Public Shared ReadOnly Property CorrelationManager As CorrelationManager

属性值

CorrelationManager

与此跟踪的线程关联的 CorrelationManager 对象。The CorrelationManager object associated with the thread for this trace.

注解

备注

这是大多数应用程序都不应使用的高级属性。This is an advanced property that most applications should not have occasion to use.

CorrelationManager类提供用于在线程绑定的上下文中存储逻辑操作标识的方法,并使用存储的标识自动标记线程生成的每个跟踪事件。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.

适用于

另请参阅