語言

PromptAttribute 類別

定義

請定義詢問領域時所使用的提示詞。

[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)]
[System.Serializable]
public class PromptAttribute : Microsoft.Bot.Builder.FormFlow.Advanced.TemplateBaseAttribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)>]
[<System.Serializable>]
type PromptAttribute = class
    inherit TemplateBaseAttribute
Public Class PromptAttribute
Inherits TemplateBaseAttribute
繼承
屬性

備註

提示預設會來自 \ref 模板。 這個屬性讓你可以用另一個 EF 模式的弦 \r覆蓋這個設定。 實際的提示詞會從你提供的選項中隨機選出。

建構函式

名稱 Description
PromptAttribute(String[])

定義一個提示詞,隨機選擇一個或多個 \ref模式模式。

PromptAttribute(TemplateAttribute)

根據 . 來定義一個提示詞 TemplateAttribute。

屬性

名稱 Description
AllowDefault

在處理 \ref 模式字串中的 {||} 選擇時,若有預設值,請提供選項。

(繼承來源 TemplateBaseAttribute)
ChoiceCase

在 \rEF 模式字串中顯示 {||} 參考中的選擇時,控制情況。

(繼承來源 TemplateBaseAttribute)
ChoiceFormat

格式字串用於呈現每個選擇,顯示 \ref 模式字串中的 {||} 選項。

(繼承來源 TemplateBaseAttribute)
ChoiceLastSeparator

在構建使用 {||} 的 \ref 模式字串中的內聯選擇列表時,該字串是最後一個選擇之前使用的字串。

(繼承來源 TemplateBaseAttribute)
ChoiceParens

在 \r中構建 {||} 的內嵌選擇列表時ef pattern 字串控制是否要在選擇周圍加上括號。

(繼承來源 TemplateBaseAttribute)
ChoiceSeparator

在使用 {||} 建立 \ref 模式字串中的串列時,該字串在除最後一個選擇外的所有選擇間所用的字串。

(繼承來源 TemplateBaseAttribute)
ChoiceStyle

如何在 EF 圖案串中處理 {||} 選項時 \r

(繼承來源 TemplateBaseAttribute)
Feedback

控制使用者在每次輸入後收到的回饋。

(繼承來源 TemplateBaseAttribute)
FieldCase

控制情況:在 \ref 模式字串中顯示 {&} 欄位名稱參考。

(繼承來源 TemplateBaseAttribute)
IsLocalizable

如果屬性是可局部化的,那就成立。

(繼承來源 FormFlowAttribute)
LastSeparator

在構造 {[]} 的 \ref pattern 字串時,也就是在 list 最後一個值之前使用的字串。

(繼承來源 TemplateBaseAttribute)
Patterns

所有可能的範本。

(繼承來源 TemplateBaseAttribute)
Separator

在構造 {[]} 的 EF 模式字串 \r時,除了最後一個值外,所有值之間使用的字串。

(繼承來源 TemplateBaseAttribute)
ValueCase

在 EF 模式字串中顯示 {} 值參考時的控制情況 \r

(繼承來源 TemplateBaseAttribute)

方法

名稱 Description
ApplyDefaults(TemplateBaseAttribute)

此範本中的任何預設值都會被提供的 defaultTemplate。

(繼承來源 TemplateBaseAttribute)
Pattern()

產生字 IPrompt<T>串時應使用的模式。

(繼承來源 TemplateBaseAttribute)

適用於