IActivity.ApplyConversationReference(ConversationReference, Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
用現有對話參考的傳遞資訊更新活動。
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
Public Function ApplyConversationReference (reference As ConversationReference, Optional isIncoming As Boolean = false) As Activity
參數
- reference
- ConversationReference
交談參考。
- isIncoming
- Boolean
(可選) true將活動視為輸入活動,機器人為接收者;其他。false
預設值為 false,活動會顯示機器人為發送者。
傳回
活動。
例外狀況
reference 為 null。
備註
在傳入活動上呼叫 GetConversationReference(),以取得交談參考,您接著可以使用正確的傳遞資訊來更新傳出活動。