ChoiceFactory.List Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| Nom | Description |
|---|---|
| List(IList<Choice>, String, String, ChoiceFactoryOptions) |
Crée une activité de message contenant une liste de choix formatée sous forme de liste numérotée ou à puces. |
| List(IList<String>, String, String, ChoiceFactoryOptions) |
Crée une activité de message qui inclut une liste de choix mis en forme en tant que liste numérotée ou à puces. |
List(IList<Choice>, String, String, ChoiceFactoryOptions)
Crée une activité de message contenant une liste de choix formatée sous forme de liste numérotée ou à puces.
public static Microsoft.Bot.Schema.Activity List(System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> choices, string text = default, string speak = default, Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions options = default);
static member List : System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> * string * string * Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions -> Microsoft.Bot.Schema.Activity
Public Shared Function List (choices As IList(Of Choice), Optional text As String = Nothing, Optional speak As String = Nothing, Optional options As ChoiceFactoryOptions = Nothing) As Activity
Paramètres
- 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.
- options
- ChoiceFactoryOptions
Optionnel, options de mise en forme pour ajuster le rendu de la liste.
Retours
Une activité avec des choix sous forme de liste numérotée ou à puces.
S’applique à
List(IList<String>, String, String, ChoiceFactoryOptions)
Crée une activité de message qui inclut une liste de choix mis en forme en tant que liste numérotée ou à puces.
public static Microsoft.Bot.Schema.Activity List(System.Collections.Generic.IList<string> choices, string text = default, string speak = default, Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions options = default);
static member List : System.Collections.Generic.IList<string> * string * string * Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions -> Microsoft.Bot.Schema.Activity
Public Shared Function List (choices As IList(Of String), Optional text As String = Nothing, Optional speak As String = Nothing, Optional options As ChoiceFactoryOptions = Nothing) As Activity
Paramètres
- text
- String
Facultatif, texte du message à envoyer.
- speak
- String
Optionnel, le texte doit être prononcé par votre bot via un canal habilité par la voix.
- options
- ChoiceFactoryOptions
Optionnel, les options de formatage à utiliser lors du rendu en liste.
Retours
Activité de message créée.