语言

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>

要添加到事件的其他属性。

返回

这些属性及其值在机器人发送消息时要记录。

适用于