共用方式為


PromptOptions interface

所有提示所支援的基本組態選項。

屬性

choices

(選擇性)與提示相關聯的選項清單。

prompt

(選擇性)傳送使用者的初始提示。

retryPrompt

(選擇性)重試提示以傳送使用者。

style

(選擇性)當使用 DialogContext.prompt 執行提示時,可用來覆寫或設定 ChoicePrompt.Style 值的屬性。

validations

(選擇性)傳遞提示驗證程式例程的其他驗證規則。

屬性詳細資料

choices

(選擇性)與提示相關聯的選項清單。

choices?: string | Choice[]

屬性值

string | Choice[]

prompt

(選擇性)傳送使用者的初始提示。

prompt?: string | Partial<Activity>

屬性值

string | Partial<Activity>

retryPrompt

(選擇性)重試提示以傳送使用者。

retryPrompt?: string | Partial<Activity>

屬性值

string | Partial<Activity>

style

(選擇性)當使用 DialogContext.prompt 執行提示時,可用來覆寫或設定 ChoicePrompt.Style 值的屬性。

style?: ListStyle

屬性值

validations

(選擇性)傳遞提示驗證程式例程的其他驗證規則。

validations?: object

屬性值

object