ActivityLink 结构

定义

活动可链接到与零个或多个因果相关的活动上下文实例。Activities may be linked to zero or more activity context instances that are causally related.

活动链接可指向单个跟踪内或不同跟踪内的活动上下文。Activity links can point to activity contexts inside a single trace or across different traces.

活动链接可用于表示批处理操作,其中活动由多个启动活动启动,每个活动表示正在进行批处理的单个传入项。Activity links can be used to represent batched operations where an activity was initiated by multiple initiating activities, each representing a single incoming item being processed in the batch.

public value class ActivityLink : IEquatable<System::Diagnostics::ActivityLink>
public struct ActivityLink : IEquatable<System.Diagnostics.ActivityLink>
type ActivityLink = struct
Public Structure ActivityLink
Implements IEquatable(Of ActivityLink)
继承
ActivityLink
实现

构造函数

ActivityLink(ActivityContext, ActivityTagsCollection)

构造可链接到活动的新活动链接。Constructs a new activity link, which can be linked to an activity.

属性

Context

检索此活动链接内的活动上下文。Retrieves the activity context inside this activity link.

Tags

检索附加到活动上下文的标记的键值对枚举。Retrieves the key-value pair enumeration of tags attached to the activity context.

方法

Equals(ActivityLink)

指示当前活动链接是否等于另一个活动链接。Indicates whether the current activity link is equal to another activity link.

Equals(Object)

指示当前活动链接是否等于另一个对象。Indicates whether the current activity link is equal to another object.

GetHashCode()

提供当前 ActivityLink 的哈希函数,适合用于哈希算法和数据结构(如哈希表)。Provides a hash function for the current ActivityLink that's suitable for hashing algorithms and data structures, such as hash tables.

运算符

Equality(ActivityLink, ActivityLink)

确定两个指定的 ActivityLink 值是否相等。Determines whether two specified ActivityLink values are equal.

Inequality(ActivityLink, ActivityLink)

确定两个指定的 ActivityLink 值是否不相等。Determines whether two specified ActivityLink values are not equal.

适用于