Language

Card.ToMessage Method

Definition

Creates a new message activity that includes this card as an attachment.

public virtual Microsoft.Agents.Core.Models.IActivity ToMessage();
abstract member ToMessage : unit -> Microsoft.Agents.Core.Models.IActivity
override this.ToMessage : unit -> Microsoft.Agents.Core.Models.IActivity
Public Overridable Function ToMessage () As IActivity

Returns

An IActivity representing a message activity with the card attached.

Remarks

Use this method to generate a message activity suitable for sending to a user, with the current card included as an attachment. The returned activity has its type set to ActivityTypes.Message.

Applies to