Activity.ParentSpanId 属性

定义

获取父级的 SpanIdGets the parent's SpanId.

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

属性值

ActivitySpanId

父项的 SpanIdThe parent's SpanId.

注解

如果 Activity.ParentId 采用 W3C 格式,则此属性返回 SpanId ParentId 的部分。If the Activity.ParentId is in the W3C format, this property returns the SpanId part of the ParentId. 否则,它将返回零 SpanIdOtherwise it returns a zero SpanId.

适用于