語言

PromptOptions<T> 建構函式

定義

設計提示選項。

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)

參數

prompt
String

提示。

retry
String

重試時要顯示什麼。

tooManyAttempts
String

當使用者沒有在後 Attempts回覆有效回應時該顯示什麼。

options
IReadOnlyList<T>

提示選擇的值。

attempts
Int32

嘗試次數上限。

promptStyler
PromptStyler

提示樣式器。

descriptions
IReadOnlyList<String>

每個提示的描述。

speak
String

Speak 標籤(文字轉語音的 SSML 標記)。

retrySpeak
String

重試 Speak 要顯示什麼(文字轉語音的 SSML 標記)。

recognizer
IPromptRecognizer

Entity Recognitionr 用來解析訊息內容。

適用於