Langue

ChoiceFactory.HeroCard(IList<Choice>, String, String) Méthode

Définition

Crée une activité de message incluant une liste de choix ajoutés comme 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

Paramètres

choices
IList<Choice>

La liste des choix à ajouter.

text
String

Optionnel, texte du message.

speak
String

Optionnel, le texte SSML doit être prononcé par le bot sur un canal habilité par la voix.

Retours

Une activité avec des choix comme HeroCard avec des boutons.

S’applique à