Activity.TraceId 属性

定义

获取 Id 的 TraceId 部分。Gets the TraceId part of the Id.

public:
 property System::Diagnostics::ActivityTraceId TraceId { System::Diagnostics::ActivityTraceId get(); };
public System.Diagnostics.ActivityTraceId TraceId { get; }
member this.TraceId : System.Diagnostics.ActivityTraceId
Public ReadOnly Property TraceId As ActivityTraceId

属性值

ActivityTraceId

如果 ID 具有 W3C 格式,则为的 TraceId 部分的 ID Id ; 否则为零 TraceId。The ID for the TraceId part of the Id, if the ID has the W3C format; otherwise, a zero TraceId.

适用于