語言

DistributedContextPropagator.ExtractBaggage 方法

定義

從承運人代表的來電請求中擷取行李鍵值對清單。 例如,從 HTTP 請求的標頭中取得。

public:
 abstract System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>> ^ ExtractBaggage(System::Object ^ carrier, System::Diagnostics::DistributedContextPropagator::PropagatorGetterCallback ^ getter);
public abstract System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string?>>? ExtractBaggage(object? carrier, System.Diagnostics.DistributedContextPropagator.PropagatorGetterCallback? getter);
abstract member ExtractBaggage : obj * System.Diagnostics.DistributedContextPropagator.PropagatorGetterCallback -> seq<System.Collections.Generic.KeyValuePair<string, string>>
Public MustOverride Function ExtractBaggage (carrier As Object, getter As DistributedContextPropagator.PropagatorGetterCallback) As IEnumerable(Of KeyValuePair(Of String, String))

參數

carrier
Object

價值被讀取的媒介。

getter
DistributedContextPropagator.PropagatorGetterCallback

呼叫方法,用來從承運人取得傳播行李清單。

傳回

回傳從載信業者擷取的鍵值對清單。

適用於