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