PromptOptionsWithSynonyms<T> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
构造提示选项。
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)
参数
- prompt
- String
提示。
- retry
- String
重试时要显示的内容。
- choices
- IReadOnlyDictionary<T,IReadOnlyList<T>>
提示选项值。
- attempts
- Int32
最大尝试次数。
- promptStyler
- PromptStyler
提示样式器。
- descriptions
- IReadOnlyList<String>
每个提示的说明。
- speak
- String
语音标记 (文本转语音) 的 SSML 标记。
- retrySpeak
- String
对于文本转语音) ,重试朗 (SSML 标记时显示的内容。
- recognizer
- IPromptRecognizer
用于分析消息内容的实体识别器。