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.

適用於