Redigera

Dela via


Activity.Baggage Property

Definition

Gets a collection of key/value pairs that represents information that is passed to children of this Activity.

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

Property Value

Information that's passed to children of this Activity.

Remarks

Baggage is serialized when requests leave the process (along with the ID). Typically, Baggage is used for fine-grained control over logging of the activity and any children. In general, if you are not using the data at runtime, you should be using Tags instead.

Applies to