語言

TemplateBaseAttribute 類別

定義

所有使用 EF 模式的屬性所使用的抽象基底類別 \r。

public abstract class TemplateBaseAttribute : Microsoft.Bot.Builder.FormFlow.FormFlowAttribute
type TemplateBaseAttribute = class
    inherit FormFlowAttribute
Public MustInherit Class TemplateBaseAttribute
Inherits FormFlowAttribute
繼承
TemplateBaseAttribute
衍生

建構函式

名稱 Description
TemplateBaseAttribute(String[])

初始化時會隨機選擇多個模式。

TemplateBaseAttribute(TemplateBaseAttribute)

從另一個範本初始化。

屬性

名稱 Description
AllowDefault

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

ChoiceCase

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

ChoiceFormat

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

ChoiceLastSeparator

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

ChoiceParens

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

ChoiceSeparator

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

ChoiceStyle

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

Feedback

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

FieldCase

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

IsLocalizable

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

(繼承來源 FormFlowAttribute)
LastSeparator

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

Patterns

所有可能的範本。

Separator

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

ValueCase

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

方法

名稱 Description
ApplyDefaults(TemplateBaseAttribute)

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

Pattern()

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

適用於