Card.ToMessage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.