语言

TemplateBaseAttribute 类

定义

所有使用 EF 模式的属性都使用的抽象基类 \r。

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 pattern字符串中显示{||}引用中的选择时,控制情况。

ChoiceFormat

格式字符串用于在 \ref模式字符串中展示{||}选项时呈现每个选择。

ChoiceLastSeparator

在构建使用 {||} 的 \ref pattern 字符串中的内联选择列表时,该字符串是最后一个选择之前使用的字符串。

ChoiceParens

在 \r中构建 {||} 的内联选择列表时,EF 模式字符串控制是否在选择周围加括号。

ChoiceSeparator

在构造内联列表时,使用 {||} 在 \ref 模式字符串中,即除最后一个外所有选项中使用的字符串。

ChoiceStyle

如何在 \rEF 模式字符串中处理 {||} 选项时显示 {||} 。

Feedback

控制用户在每次输入后获得的反馈类型。

FieldCase

在 \rEF 模式字符串中显示 {&} 字段名引用时的控制情况。

IsLocalizable

如果属性是可局部化的,则为真。

(继承自 FormFlowAttribute)
LastSeparator

在构建列表中使用 {[]} 的 \ref patterns 字符串时,即列表中最后一个值之前使用的字符串。

Patterns

所有可能的模板。

Separator

在构造使用 {[]} 的列表时,\ref 模式字符串中,除了最后一个值外,所有值之间都用的字符串。

ValueCase

在 EF patterns 字符串中显示 {} 值引用时的控制情况 \r

方法

名称 说明
ApplyDefaults(TemplateBaseAttribute)

模板中的任何默认值都会被提供的 defaultTemplate。

Pattern()

生成字符串 IPrompt<T>时应采用的模式。

适用于