语言

TelemetryLoggerMiddleware.FillReceiveEventPropertiesAsync 方法

定义

填充事件属性。BotMsgReceiveEvent 如果 LogPersonalInformation 为真,则过滤掉发送者姓名以及消息的文本和语音字段。

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

参数

activity
Activity

用户发送的消息活动。

additionalProperties
Dictionary<String,String>

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

返回

当用户收到消息时,这些属性及其值用于记录。

适用于