Delen via


PromptOptions<T> Constructor

Definitie

Hiermee worden de promptopties samengesteld.

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)

Parameters

prompt
String

De prompt.

retry
String

Wat moet worden weergegeven bij opnieuw proberen.

tooManyAttempts
String

Wat moet worden weergegeven wanneer de gebruiker geen geldig antwoord heeft gezegd na Attempts.

options
IReadOnlyList<T>

De waarden voor de promptkeuze.

attempts
Int32

Maximum aantal pogingen.

promptStyler
PromptStyler

De prompt styler.

descriptions
IReadOnlyList<String>

Beschrijvingen voor elke prompt.

speak
String

De tag Uitspreken (SSML-markering voor tekst-naar-spraak).

retrySpeak
String

Wat u moet weergeven bij opnieuw uitspreken (SSML-markering voor tekst-naar-spraak).

recognizer
IPromptRecognizer

Entity Recognizer om de inhoud van het bericht te parseren.

Van toepassing op