CorrelationDataMessageProperty.AddData 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將相互關聯資料加入至指定的訊息。
public:
static void AddData(System::ServiceModel::Channels::Message ^ message, System::String ^ name, Func<System::String ^> ^ dataProvider);
public static void AddData (System.ServiceModel.Channels.Message message, string name, Func<string> dataProvider);
static member AddData : System.ServiceModel.Channels.Message * string * Func<string> -> unit
Public Shared Sub AddData (message As Message, name As String, dataProvider As Func(Of String))
參數
- message
- Message
要修改的訊息。
- name
- String
相互關聯資料提供者的名稱。
備註
如果訊息具有 CorrelationDataMessageProperty,則將相互關聯資料加入至 CorrelationDataMessageProperty,否則,則會加入包含相互關聯資料的 CorrelationDataMessageProperty。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應