ConfirmPrompt 類別

定義

提示使用者確認具有是/否回應的專案。

public class ConfirmPrompt : Microsoft.Bot.Builder.Dialogs.Prompt<bool>
type ConfirmPrompt = class
    inherit Prompt<bool>
Public Class ConfirmPrompt
Inherits Prompt(Of Boolean)
繼承
ConfirmPrompt

建構函式

ConfirmPrompt(String, Dictionary<String,ValueTuple<Choice,Choice,ChoiceFactoryOptions>>, PromptValidator<Boolean>, String)

初始化 ConfirmPrompt 類別的新實例。

ConfirmPrompt(String, PromptValidator<Boolean>, String)

初始化 ConfirmPrompt 類別的新實例。

屬性

ChoiceOptions

取得或設定傳遞至 的其他選項,並用來調整呈現給用戶的選擇樣式。

ConfirmChoices

取得或設定提示的 yes 和 no Choice

DefaultLocale

取得或設定用來判斷提示語言特定行為的預設地區設定。

Id

取得或設定對話框的識別碼。

(繼承來源 Dialog)
Source

取得 cref=“SourceRange”/>的資訊。

(繼承來源 Dialog)
Style

取得或設定提示時呈現給使用者的 yes/no 選項樣式。

TelemetryClient

取得或設定要用於記錄的 IBotTelemetryClient

(繼承來源 Dialog)

方法

AppendChoices(IMessageActivity, String, IList<Choice>, ListStyle, ChoiceFactoryOptions, CancellationToken)

在衍生類別中覆寫時,在系統提示使用者輸入時,將選擇附加至活動。

(繼承來源 Prompt<T>)
AppendChoices(IMessageActivity, String, IList<Choice>, ListStyle, ChoiceFactoryOptions, String, IList<String>, CancellationToken)

在衍生類別中覆寫時,在系統提示使用者輸入時,將選擇附加至活動。

(繼承來源 Prompt<T>)
BeginDialogAsync(DialogContext, Object, CancellationToken)

當提示對話框推送至對話堆疊並正在啟動時呼叫。

(繼承來源 Prompt<T>)
ContinueDialogAsync(DialogContext, CancellationToken)

當提示對話框是作用中的對話框,且使用者以新的活動回復時呼叫。

(繼承來源 Prompt<T>)
EndDialogAsync(ITurnContext, DialogInstance, DialogReason, CancellationToken)

對話框結束時呼叫。

(繼承來源 Dialog)
GetVersion()

取得代表這個對話框版本的唯一字串。 如果之間的版本變更,對話系統將會發出 DialogChanged 事件。

(繼承來源 Dialog)
OnComputeId()

建置對話框的計算標識碼。

(繼承來源 Dialog)
OnDialogEventAsync(DialogContext, DialogEvent, CancellationToken)

使用 DialogContext.emitEvent()引發事件時,由目前對話框或目前對話框啟動的對話框呼叫。

(繼承來源 Dialog)
OnPostBubbleEventAsync(DialogContext, DialogEvent, CancellationToken)

在事件向所有家長泡泡後呼叫,但未處理。

(繼承來源 Dialog)
OnPreBubbleEventAsync(DialogContext, DialogEvent, CancellationToken)

在事件反升至其父系之前呼叫。

(繼承來源 Prompt<T>)
OnPromptAsync(ITurnContext, IDictionary<String,Object>, PromptOptions, Boolean, CancellationToken)

提示用戶輸入。

OnRecognizeAsync(ITurnContext, IDictionary<String,Object>, PromptOptions, CancellationToken)

嘗試辨識用戶的輸入。

RegisterSourceLocation(String, Int32)

在提供的位置註冊 cref=“SourceRange”/>。

(繼承來源 Dialog)
RepromptDialogAsync(ITurnContext, DialogInstance, CancellationToken)

當要求提示對話方塊重新提示使用者輸入時呼叫。

(繼承來源 Prompt<T>)
ResumeDialogAsync(DialogContext, DialogReason, Object, CancellationToken)

當提示對話框繼續成為對話堆疊上的使用中對話框時呼叫,例如當堆棧上的上一個使用中對話方塊完成時。

(繼承來源 Prompt<T>)

擴充方法

RunAsync(Dialog, ITurnContext, IStatePropertyAccessor<DialogState>, CancellationToken)

建立對話堆疊並啟動對話,並將它推送至堆疊。

適用於