編輯

共用方式為


ActivityLink(ActivityContext, ActivityTagsCollection) Constructor

Definition

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

public ActivityLink (System.Diagnostics.ActivityContext context, System.Diagnostics.ActivityTagsCollection? tags = default);
new System.Diagnostics.ActivityLink : System.Diagnostics.ActivityContext * System.Diagnostics.ActivityTagsCollection -> System.Diagnostics.ActivityLink
Public Sub New (context As ActivityContext, Optional tags As ActivityTagsCollection = Nothing)

Parameters

context
ActivityContext

The trace activity context.

tags
ActivityTagsCollection

The key-value pair list of tags associated to the activity context.

Applies to