Share via


Activity.ApplyConversationReference(ConversationReference, Boolean) Method

Definition

Updates this activity with the delivery information from an existing 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

Parameters

reference
ConversationReference

The existing conversation reference.

isIncoming
Boolean

Optional, true to treat the activity as an incoming activity, where the bot is the recipient; otherwise, false. Default is false, and the activity will show the bot as the sender.

Returns

This activity, updated with the delivery information.

Implements

Remarks

Call GetConversationReference() on an incoming activity to get a conversation reference that you can then use to update an outgoing activity with the correct delivery information.

Applies to