Edit

Share via


Activity.Tags Property

Definition

Gets a collection of key/value pairs that represent information that will be logged along with the Activity to the logging system.

public:
 property System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>> ^ Tags { System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>> ^ get(); };
public System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string?>> Tags { get; }
public System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>> Tags { get; }
member this.Tags : seq<System.Collections.Generic.KeyValuePair<string, string>>
Public ReadOnly Property Tags As IEnumerable(Of KeyValuePair(Of String, String))

Property Value

Information that will be logged along with the Activity to the logging system.

Remarks

In .NET 5 and later versions, the order of the tags in the list matches the order in which they're added to the list. In previous versions, the order is reversed, that is, the first item added is last in the list.

Applies to