語言

Activity.Baggage 屬性

定義

會獲得一組代表傳遞給子 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))

屬性值

這些資訊會傳給孩子們 Activity。

備註

Baggage 當請求離開程序時(連同 ID 一起)會被序列化。 通常 Baggage 用於對活動及任何子體的細緻記錄控制。 一般來說,如果你在執行時沒有使用資料,那你應該改 Tags 用。

適用於