PromptOptionsWithSynonyms<T> Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Constructs the prompt options.
public PromptOptionsWithSynonyms (string prompt, string retry = default, string tooManyAttempts = default, System.Collections.Generic.IReadOnlyDictionary<T,System.Collections.Generic.IReadOnlyList<T>> choices = 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.PromptOptionsWithSynonyms<'T> : string * string * string * System.Collections.Generic.IReadOnlyDictionary<'T, 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.PromptOptionsWithSynonyms<'T>
Public Sub New (prompt As String, Optional retry As String = Nothing, Optional tooManyAttempts As String = Nothing, Optional choices As IReadOnlyDictionary(Of T, 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.
- choices
- IReadOnlyDictionary<T,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.