TelemetryLoggerMiddleware.FillReceiveEventPropertiesAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
填滿事件的事件屬性 BotMsgReceiveEvent 。 LogPersonalInformation如果 為 true,則會篩選出寄件者的名稱和訊息的文字和說話欄位。
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>
要新增至事件的其他屬性。
傳回
從使用者收到訊息時要記錄的屬性及其值。