Share via


ChoiceFactory.HeroCard(IList<Choice>, String, String) Method

Definition

Creates a message activity that includes a list of choices that have been added as HeroCard's.

public static Microsoft.Bot.Schema.IMessageActivity HeroCard (System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> choices, string text = default, string speak = default);
static member HeroCard : System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> * string * string -> Microsoft.Bot.Schema.IMessageActivity
Public Shared Function HeroCard (choices As IList(Of Choice), Optional text As String = Nothing, Optional speak As String = Nothing) As IMessageActivity

Parameters

choices
IList<Choice>

The list of choices to add.

text
String

Optional, text of the message.

speak
String

Optional, SSML text to be spoken by the bot on a speech-enabled channel.

Returns

An activity with choices as HeroCard with buttons.

Applies to