Lingua

PromptOptions<T> Costruttore

Definizione

Costruisce le opzioni di prompt.

public PromptOptions(string prompt, string retry = default, string tooManyAttempts = default, System.Collections.Generic.IReadOnlyList<T> options = default, int attempts = 3, Microsoft.Bot.Builder.Dialogs.PromptStyler promptStyler = default, System.Collections.Generic.IReadOnlyList<string> descriptions = default, string speak = default, string retrySpeak = default, Microsoft.Bot.Builder.Dialogs.IPromptRecognizer recognizer = default);
new Microsoft.Bot.Builder.Dialogs.PromptOptions<'T> : string * string * string * System.Collections.Generic.IReadOnlyList<'T> * int * Microsoft.Bot.Builder.Dialogs.PromptStyler * System.Collections.Generic.IReadOnlyList<string> * string * string * Microsoft.Bot.Builder.Dialogs.IPromptRecognizer -> Microsoft.Bot.Builder.Dialogs.PromptOptions<'T>
Public Sub New (prompt As String, Optional retry As String = Nothing, Optional tooManyAttempts As String = Nothing, Optional options As IReadOnlyList(Of T) = Nothing, Optional attempts As Integer = 3, Optional promptStyler As PromptStyler = Nothing, Optional descriptions As IReadOnlyList(Of String) = Nothing, Optional speak As String = Nothing, Optional retrySpeak As String = Nothing, Optional recognizer As IPromptRecognizer = Nothing)

Parametri

prompt
String

Richiesta.

retry
String

Cosa mostrare al ritento.

tooManyAttempts
String

Cosa mostrare quando l'utente non ha risposto validamente dopo Attempts.

options
IReadOnlyList<T>

I valori della scelta del prompt.

attempts
Int32

Numero massimo di tentativi.

promptStyler
PromptStyler

Lo styler prompt.

descriptions
IReadOnlyList<String>

Descrizioni per ogni prompt.

speak
String

Il tag Speak (markup SSML per la sintesi vocale).

retrySpeak
String

Cosa visualizzare al ritentare Speak (markup SSML per la sintesi vocale).

recognizer
IPromptRecognizer

Riconoscitore di entità per analizzare il contenuto del messaggio.

Si applica a