語言

TelemetryLoggerMiddleware.FillSendEventPropertiesAsync 方法

定義

為事件填充屬性 BotMsgSendEvent 。 若 LogPersonalInformation 為真,則會過濾接收者姓名及訊息的文字與語音欄位。

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

參數

activity
Activity

機器人正在回應的使用者活動。

additionalProperties
Dictionary<String,String>

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

傳回

當機器人發送訊息給使用者時,這些屬性和它們的值會被記錄下來。

適用於