共用方式為


TemplateBaseAttribute 類別

定義

所有使用 \ref 模式的屬性所使用的抽象基類。

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

建構函式

TemplateBaseAttribute(String[])

使用隨機選擇的多個模式初始化。

TemplateBaseAttribute(TemplateBaseAttribute)

從另一個範本初始化。

屬性

AllowDefault

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

ChoiceCase

在 \ref 模式字串中顯示 {||} 參考中的選項時,控制案例。

ChoiceFormat

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

ChoiceLastSeparator

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

ChoiceParens

在 \ref 模式字串中建構 {||} 的內嵌選擇列表時,會控制是否要在選項周圍包含括號。

ChoiceSeparator

在 \ref 模式字串中使用 {||} 建構內嵌列表時,在最後一個選項以外的所有選項之間使用字串。

ChoiceStyle

如何在 \ref 模式字串中處理時顯示選項 {||}。

Feedback

控制使用者在每個輸入之後取得的回饋類型。

FieldCase

在 \ref 模式字串中顯示 {&} 域名參考時的控制案例。

IsLocalizable

如果屬性可當地語系化,則為 True。

(繼承來源 FormFlowAttribute)
LastSeparator

在 \ref 模式字串中使用 {[]} 建構列表時,在列表中的最後一個值之前使用的字串。

Patterns

所有可能的範本。

Separator

在 \ref 模式字串中使用 {[]} 建構列表時,在最後一個值以外的所有值之間使用字串。

ValueCase

在 \ref 模式字串中顯示 {} 值參考時的控制案例。

方法

ApplyDefaults(TemplateBaseAttribute)

所提供的 將會覆 defaultTemplate寫此範本中的任何預設值。

Pattern()

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

適用於