TelemetryLoggerMiddleware.FillUpdateEventPropertiesAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
為事件填充屬性 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>
要新增至事件的其他屬性。
傳回
當機器人更新之前發送的訊息時,這些屬性和值要記錄下來。