Condividi tramite


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.Agents.Core.Models.IActivity HeroCard(System.Collections.Generic.IList<Microsoft.Agents.Builder.Dialogs.Choices.Choice> choices, string text = default, string speak = default);
static member HeroCard : System.Collections.Generic.IList<Microsoft.Agents.Builder.Dialogs.Choices.Choice> * string * string -> Microsoft.Agents.Core.Models.IActivity
Public Shared Function HeroCard (choices As IList(Of Choice), Optional text As String = Nothing, Optional speak As String = Nothing) As IActivity

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 Agent on a speech-enabled channel.

Returns

An activity with choices as HeroCard with buttons.

Applies to