Condividi tramite


ChoiceFactory.List Metodo

Definizione

Overload

List(IList<Choice>, String, String, ChoiceFactoryOptions)

Crea un'attività di messaggio contenente un elenco di scelte formattate come elenco numerato o puntato.

List(IList<String>, String, String, ChoiceFactoryOptions)

Crea un'attività messaggio che include un elenco di scelte formattate come elenco numerato o puntato.

List(IList<Choice>, String, String, ChoiceFactoryOptions)

Crea un'attività di messaggio contenente un elenco di scelte formattate come elenco numerato o puntato.

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

Parametri

choices
IList<Choice>

Elenco di opzioni di cui eseguire il rendering.

text
String

Testo facoltativo del messaggio.

speak
String

Testo SSML facoltativo da pronunciare dal bot in un canale abilitato per il riconoscimento vocale.

options
ChoiceFactoryOptions

Opzioni di formattazione facoltative per modificare il rendering dell'elenco.

Restituisce

Attività con scelte come elenco numerato o puntato.

Si applica a

List(IList<String>, String, String, ChoiceFactoryOptions)

Crea un'attività messaggio che include un elenco di scelte formattate come elenco numerato o puntato.

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

Parametri

choices
IList<String>

Elenco di opzioni da includere.

text
String

Facoltativo, testo del messaggio da inviare.

speak
String

Facoltativo, il testo da pronunciare dal bot in un canale abilitato per il riconoscimento vocale.

options
ChoiceFactoryOptions

Facoltativo, le opzioni di formattazione da usare per il rendering come elenco.

Restituisce

Attività del messaggio creata.

Si applica a