Activity.ApplyConversationReference(ConversationReference, Boolean) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用现有 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
将活动视为传入活动,其中机器人是接收者;否则,false
。
默认值为 false
,活动会将机器人显示为发送方。
返回
此活动使用传递信息进行更新。
实现
注解
调用传入活动的 GetConversationReference() 以获取对话引用,然后可以使用该引用使用正确的传递信息更新传出活动。