Compartir a través de


ActivityExtensions.GetAttributeOrBaggage(Activity, String) Method

Definition

Gets the value of a tag (takes precedence) or baggage item from the activity.

public static string? GetAttributeOrBaggage(this System.Diagnostics.Activity activity, string key);
static member GetAttributeOrBaggage : System.Diagnostics.Activity * string -> string
<Extension()>
Public Function GetAttributeOrBaggage (activity As Activity, key As String) As String

Parameters

activity
Activity
key
String

Returns

Applies to