共用方式為


Activity.ApplyConversationReference(ConversationReference, Boolean) 方法

定義

使用現有 ConversationReference的傳遞資訊更新此活動。

public Microsoft.Bot.Schema.Activity ApplyConversationReference (Microsoft.Bot.Schema.ConversationReference reference, bool isIncoming = false);
abstract member ApplyConversationReference : Microsoft.Bot.Schema.ConversationReference * bool -> Microsoft.Bot.Schema.Activity
override this.ApplyConversationReference : Microsoft.Bot.Schema.ConversationReference * bool -> Microsoft.Bot.Schema.Activity
Public Function ApplyConversationReference (reference As ConversationReference, Optional isIncoming As Boolean = false) As Activity

參數

reference
ConversationReference

現有的交談參考。

isIncoming
Boolean

選擇性 true 將活動視為傳入活動,其中 Bot 是收件者;否則,false。 默認值為 false,而活動會將 Bot 顯示為傳送者。

傳回

此活動會使用傳遞資訊進行更新。

實作

備註

在傳入活動上呼叫 GetConversationReference(),以取得交談參考,您接著可以使用正確的傳遞資訊來更新傳出活動。

適用於