語言

TelemetryLoggerMiddleware.FillUpdateEventPropertiesAsync 方法

定義

為事件填充屬性 BotMsgUpdateEvent 。 如果 LogPersonalInformation 為真,則會過濾掉訊息的文字欄位。

protected System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<string,string>> FillUpdateEventPropertiesAsync(Microsoft.Bot.Schema.Activity activity, System.Collections.Generic.Dictionary<string,string> additionalProperties = default);
member this.FillUpdateEventPropertiesAsync : Microsoft.Bot.Schema.Activity * System.Collections.Generic.Dictionary<string, string> -> System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<string, string>>
Protected Function FillUpdateEventPropertiesAsync (activity As Activity, Optional additionalProperties As Dictionary(Of String, String) = Nothing) As Task(Of Dictionary(Of String, String))

參數

activity
Activity

上次從用戶傳送的活動。

additionalProperties
Dictionary<String,String>

要新增至事件的其他屬性。

傳回

當機器人更新之前發送的訊息時,這些屬性和值要記錄下來。

適用於