Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ActivityLink Struct

Definition

Namespace:
System.Diagnostics
Assembly:
System.Diagnostics.DiagnosticSource.dll
Package:
System.Diagnostics.DiagnosticSource v11.0.0-preview.5.26302.115
Source:
ActivityLink.cs
Source:
ActivityLink.cs
Source:
ActivityLink.cs
Source:
ActivityLink.cs
Source:
ActivityLink.cs
Source:
ActivityLink.cs
Source:
ActivityLink.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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 readonly struct ActivityLink : IEquatable<System.Diagnostics.ActivityLink>
type ActivityLink = struct
Public Structure ActivityLink
Implements IEquatable(Of ActivityLink)
Inheritance
ActivityLink
Implements

Constructors

Name Description
ActivityLink(ActivityContext, ActivityTagsCollection)

Constructs a new activity link, which can be linked to an activity.

Properties

Name Description
Context

Retrieves the activity context inside this activity link.

Tags

Retrieves the key-value pair enumeration of tags attached to the activity context.

Methods

Name Description
EnumerateTagObjects()

Enumerate the tags attached to this ActivityLink object.

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()

Provides a hash function for the current ActivityLink that's suitable for hashing algorithms and data structures, such as hash tables.

Operators

Name Description
Equality(ActivityLink, ActivityLink)

Determines whether two specified ActivityLink values are equal.

Inequality(ActivityLink, ActivityLink)

Determines whether two specified ActivityLink values are not equal.

Applies to


Feedback

Was this page helpful?