共用方式為


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

要叫用以從貨運公司取得傳播重量清單的回呼方法。

傳回

從貨運公司傳回擷取的索引鍵/值組清單。

適用於