Share via


PromptOptions<T> Constructor

Definition

Constructs the prompt options.

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

The prompt.

retry
String

What to display on retry.

tooManyAttempts
String

What to display when user didn't say a valid response after Attempts.

options
IReadOnlyList<T>

The prompt choice values.

attempts
Int32

Maximum number of attempts.

promptStyler
PromptStyler

The prompt styler.

descriptions
IReadOnlyList<String>

Descriptions for each prompt.

speak
String

The Speak tag (SSML markup for text to speech).

retrySpeak
String

What to display on retry Speak (SSML markup for text to speech).

recognizer
IPromptRecognizer

Entity Recognizer to parse the message content.

Applies to