ChoiceFactory.HeroCard(IList<Choice>, String, String) 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 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
- 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.