ConversationReference Class

Definition

The conversationReference type contains a reference into another conversation. In its most minimal form, this reference may only contain the IDs of the target conversation. Implementers may wish to carry additional information in the conversationReference, such as the identity and roles of participants, and the ID of a specific activity within the conversation. Consumers of the conversationReference type are not provided any de facto guarantees about the validity or consistency of the IDs within the object; this is instead conferred by the sender who created the object.

The conversationReference type is frequently used to store a reference to a conversation so it can be later retrieved and used to continue a conversation.

C#
public class ConversationReference
Inheritance
ConversationReference

Constructors

Properties

ActivityId

(Optional) ID of the activity to refer to.

Bot

Channel account information needed to route a message.

ChannelId

ID of the channel in which the referenced conversation exists.

Conversation

Conversation account represents the identity of the conversation within a channel.

Locale

(Optional) A BCP-47 locale name for the referenced conversation.

ServiceUrl

(Optional) Service endpoint where operations concerning the referenced conversation may be performed.

User

Channel account information needed to route a message.

Methods

GetContinuationActivity()

Creates Activity from conversation reference as it is posted to bot.

Applies to

Product Versions
Microsoft 365 Agents SDK .NET 1