ActivityExtensions.GetAttributeOrBaggage(Activity, String) Method
Definition
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.
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